Cómo verificar el número de puerto para PostgreSQL

SELECT *
FROM pg_settings
WHERE name = 'port';
Mysterious Mandrill