[root@mdw ~]# ss -lptn 'sport = :5432'
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 *:5432 *:* users:(("postgres",pid=6443,fd=3))
LISTEN 0 128 :::5432 :::* users:(("postgres",pid=6443,fd=4))
[root@mdw ~]# netstat -nlp | grep :5432
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 6443/postgres
tcp6 0 0 :::5432 :::* LISTEN 6443/postgres
[root@mdw ~]# lsof -n -i :5432 | grep LISTEN
postgres 6443 gpadmin 3u IPv4 7899526 0t0 TCP *:postgres (LISTEN)
postgres 6443 gpadmin 4u IPv6 7899527 0t0 TCP *:postgres (LISTEN)