Skip site navigation (1) Skip section navigation (2)

Re: libpq PQstatus problem

From: "Joe Conway" <joe(dot)conway(at)mail(dot)com>
To: <philip(dot)howell(at)cit(dot)act(dot)edu(dot)au>, <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: libpq PQstatus problem
Date: 2001-03-14 05:17:45
Message-ID: 008c01c0ac46$1aa9fcd0$0205a8c0@jecw2k1 (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
> Then I stopped the network (eth0) on the postgreSQL server and hit
> again and still got
> > Connection status... OK
> as the output.  However Trying to execute the program with the postgreSQL
> offline resulted in the expected error messages, so it seems that in this
> the status was detected successfully.

I tried stopping the network on my machine, and was still able to connect
when logged on locally via psql. I presume this is because the local unix
sockets connection still works from the local machine. You might test this
by editing your pg_hba.conf file to disallow local sockets. e.g.:

local        all                                           reject

Hope this helps,


In response to

pgsql-interfaces by date

Next:From: philip.howellDate: 2001-03-14 05:43:09
Subject: Re[2]: libpq PQstatus problem
Previous:From: Joe ConwayDate: 2001-03-14 05:16:11
Subject: Re: libpq PQstatus problem

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group