"Frankie Lam" <frankie(at)ucr(dot)com(dot)hk> writes:
> I wonder if there is a timeout feature for limiting the lifetime of a
> connection in libPQ.
There is not. I don't think it's libpq's business to be deciding
whether the connection is lost or not --- that is the province of
the kernel's TCP stack. IMHO we should not second-guess the transport
layer.
regards, tom lane