checking connecton

From: Michael Kichanov <mike(at)nordlink(dot)ru>
To: pgsql-general(at)postgresql(dot)org
Subject: checking connecton
Date: 2002-10-09 20:10:57
Message-ID: 200210092011.AAA12490@mix.nordlink.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-general by date

  From Date Subject
Next Message Felipe Schnack 2002-10-09 21:25:14 md4
Previous Message Roberto (SmartBit) 2002-10-09 19:32:03 Asta with PostgreSQL