Re: How to get a signal from the database when a INSERT INTO is done?

From: hari(dot)fuchs(at)gmail(dot)com
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How to get a signal from the database when a INSERT INTO is done?
Date: 2012-02-28 16:33:35
Message-ID: 87pqcyq5nk.fsf@hf.protecting.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com> writes:

>> As mentioned above and as demonstrated in the example, select() also
>> does the job. Using such a fancy framework is usually an overkill.

> Yeah, the problem is usually if you have to do something else apart
> from listening from the notification. select() will block the entire
> application, so you would put it into a separate thread to have the
> app running on.

I don't know Python, but the C library function of select() has a
timeout parameter that can be set to 0.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message mgould 2012-02-28 16:57:59 what Linux to run
Previous Message Clodoaldo Neto 2012-02-28 16:21:26 psql: invalid connection option "client_encoding"