checking connecton

Started by Michael Kichanovover 23 years ago1 messagesgeneral
Jump to latest
#1Michael Kichanov
mike@nordlink.ru

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