Re: Postgres Port Problem (and other port issues)
Chris Mayes wrote:
>I've finally managed to connect. It looks like psql is acting odd
>(then again, maybe this is the default behavior... I am normally a
>MySQL/Oracle user). Basically, psql requires that I explicitly supply
>a hostname. So, even though psql complains about being refused on port
>5432 on localhost, I can connect as the user postgres by using 'psql -h
>localhost.'
>
>I don't imagine that this is the default behavior since the regression
>test fails because of the 'connection refused' error.
>
>Any ideas on why this might be happening?
If you supply a hostname, it uses a TCP/IP connection; if you don't, it
uses a Unix socket. I suspect your postgresql packages aren't all up
to date (see my previous mail about location of the Unix socket).
--
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Behold, happy is the man whom God correcteth.
Therefore despise thou not the chastening of the
Almighty." Job 5:17
Reply to: