Is libpq re-entrant? - Mailing list pgsql-hackers

From Ian Grant
Subject Is libpq re-entrant?
Date
Msg-id Pine.LNX.3.96.990201083126.27381B-100000@wimp.amtp.cam.ac.uk
Whole thread Raw
Responses Re: [HACKERS] Is libpq re-entrant?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Dear Hackers,

Can anyone confirm for me that libpq is re-entrant. Ie, it is safe to
execute libpq calls from within a signal handler when that signal could've
interrupted a libpq function? Of course I don't expect to be able to use
the same PGconn or PGresult structures inside the signal handler as
outside.

I've looked through the 6.4.2 libpq documentation and it doesn't say,
although the existence of non-blocking calls implies it could be made
re-entrant quite easily.

Many thanks
Ian



pgsql-hackers by date:

Previous
From: Vadim Mikheev
Date:
Subject: Re: [HACKERS] READ COMMITTED isolevel is implemented ...
Next
From: "Hiroshi Inoue"
Date:
Subject: RE: [HACKERS] READ COMMITTED isolevel is implemented ...