keepalive in libpq using - Mailing list pgsql-hackers

From Pavel Golub
Subject keepalive in libpq using
Date
Msg-id AANLkTinMOyzHUw5J_hKoiIvuruTOpHr78IPs2BKOkYM_@mail.gmail.com
Whole thread Raw
Responses Re: keepalive in libpq using
List pgsql-hackers
Hello all.

While I'm very excited about enabling keepalives in libpq, I want to
know how can I use this functionality in my application?

Let's imagine that I connect to a server with keepalives option, other
options (keepalives_idle, keepalives_interval, keepalives_count) are
used either. Then network goes down. So, how will I know that
connection is dead? Any callback function? Or should I check PQstatus
periodically?

Thank in advance

--
Nullus est in vitae sensus ipsa vera est sensus.


pgsql-hackers by date:

Previous
From: Marc Cousin
Date:
Subject: Re: TRUNCATE+COPY optimization and --jobs=1 in pg_restore
Next
From: Robert Haas
Date:
Subject: Re: Partitioning syntax