I'm running postgresql on ubuntu. the 9.4 branch from postgresql.org
I think the only way to disable ipv6 is to edit postgresql.conf and explicitly state localhost in ipv4 as follows
- listen_addresses = 'localhost'
+ listen_addresses = '127.0.0.1'
can anyone confirm?