libpq thread safety

From: Mark Morgan Lloyd <markMLl(dot)pgsql-general(at)telemetry(dot)co(dot)uk>
To: pgsql-general(at)PostgreSQL(dot)org
Subject: libpq thread safety
Date: 2012-12-27 18:42:44
Message-ID: kbi4r4$erv$1@pye-srv-01.telemetry.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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]

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2012-12-27 19:02:02 Re: libpq thread safety
Previous Message Adrian Klaver 2012-12-27 16:55:53 Re: update table from a csv file