Re: Question on triggers and plpgsql - Mailing list pgsql-sql

From Vivek Khera
Subject Re: Question on triggers and plpgsql
Date
Msg-id 986acdb4ff3bdac82c5e09c607bc7839@khera.org
Whole thread Raw
In response to Re: Question on triggers and plpgsql  (Andrew Sullivan <ajs@crankycanuck.ca>)
Responses Re: Question on triggers and plpgsql  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
On Apr 8, 2005, at 10:59 AM, Andrew Sullivan wrote:

> wakes up the mail-sender client with the NOTIFY; the NOTIFY and the
> commit to the mail-it table only happen in that case if the
> transaction commits.  And since mail is async anyway, the extra few
> seconds shouldn't make any difference, right?
>

I have a lot of processing that could benefit from this type of 
synchronization, except the fact that there's no Pg command to "wait 
until I get a notify message".  You have to constantly poll to see if 
you got one, which negates a lot of the benefit of async notification 
to rarely run processes.

Vivek Khera, Ph.D.
+1-301-869-4449 x806


pgsql-sql by date:

Previous
From: "Joel Fradkin"
Date:
Subject: Re: getting count for a specific querry
Next
From: Scott Marlowe
Date:
Subject: Re: getting count for a specific querry