From: Keary Suska <hierophant@pcisys.net>
To: Postgres-PHP <pgsql-php@postgresql.org>
Subject: Re: unable to connect to pgsql server
Date: Tue, 25 May 2004 11:02:30 -0600
Message-ID: <BCD8D846.112B7%hierophant@pcisys.net> (raw)
In-Reply-To: <5.2.1.1.0.20040524141824.02d7b060@pop6.sympatico.ca>
on 5/24/04 2:59 PM, fbax@sympatico.ca purportedly said:
> I couldn't figure out OpenBSD options for netstat. Do these prove the same
> thing?
> # netstat -l | grep 5432
> 0xd187f7d8 stream 0 0 0xe8844498 0x0 0x0 0x0
> /tmp/.s.PGSQL.5432
You could probably do this:
# netstat -ln | grep 5432
Which should show two entries--one for TCP/IP, one for Unix Domain Socket.
> # fstat | head -n 1 ; fstat | grep 5432
> USER CMD PID FD MOUNT INUM MODE R/W DV|SZ
> _pgsql postgres 5444 3* internet stream tcp 0xd18729dc *:5432
I am not familiar with this command, but it seems to be saying that you have
a listening connection on the right port.
Some other questions:
1) If you use the IP instead of host name, do you get the same effect?
2) Have you tried not specifying a host--in which case the Unix domain
socket will be used--and does it work?
If any of the above workarounds work, I recommend using them, as I can't
imagine what the problem may be.
Best regards,
Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: hierophant@pcisys.net
Subject: Re: unable to connect to pgsql server
In-Reply-To: <BCD8D846.112B7%hierophant@pcisys.net>
References: <5.2.1.1.0.20040524141824.02d7b060@pop6.sympatico.ca> <BCD8D846.112B7%hierophant@pcisys.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox