checking connecton - Mailing list pgsql-general

From Michael Kichanov
Subject checking connecton
Date
Msg-id 200210092011.AAA12490@mix.nordlink.ru
Whole thread Raw
List pgsql-general
Hi All!

Help me please postgres guru!

How can I check from libpq C client program whether connection to pgsql
engine is still work or already lost?
PQstatus() returns CONNECTION_OK even if backend process is killed
after PQsetdb().

ps: Searching through pgsql-mail-lists archive and Faq give nothing.

thanx in advance,
mike

pgsql-general by date:

Previous
From: "Roberto (SmartBit)"
Date:
Subject: Asta with PostgreSQL
Next
From: Herbie Liechti
Date:
Subject: Re: odbc with debian woody/postgres