Como verificar o número da porta para postgreSQL
SELECT *
FROM pg_settings
WHERE name = 'port';
Mysterious Mandrill
SELECT *
FROM pg_settings
WHERE name = 'port';
select * from pg_settings where name = 'port'