libpq thread safety - Mailing list pgsql-general

From Mark Morgan Lloyd
Subject libpq thread safety
Date
Msg-id kbi4r4$erv$1@pye-srv-01.telemetry.co.uk
Whole thread Raw
Responses Re: libpq thread safety  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Do any special precautions need to be taken when PQNotifies is being
called, to make sure that nothing else is referencing the handle?

The sort of nightmare scenario I'm thinking about is when a background
thread is periodically pulling data from a table into a buffer, but a
foreground (GUI) timer is asynchronously polling for notifications.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: update table from a csv file
Next
From: Tom Lane
Date:
Subject: Re: libpq thread safety