command to check port in postgresql code example
Example 1: how to check port number for postgresql
SELECT *
FROM pg_settings
WHERE name = 'port';
Example 2: netstat command in linux to check specific port
netstat -tulpn | grep :80
SELECT *
FROM pg_settings
WHERE name = 'port';
netstat -tulpn | grep :80