Re: elegant and effective way for running jobs inside a database - Mailing list pgsql-hackers

From Tom Lane
Subject Re: elegant and effective way for running jobs inside a database
Date
Msg-id 21910.1331074380@sss.pgh.pa.us
Whole thread Raw
In response to Re: elegant and effective way for running jobs inside a database  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> I was thinking that the connection would be kept open but no query would
> be running.  Does this preclude reception of notifies?  I mean, you
> don't sleep via "SELECT pg_sleep()" but rather a select/poll in the
> daemon.

No.  If you're not inside a transaction, notifies will be sent
immediately.  They'd be pretty useless if they didn't work that way ---
the whole point is for clients not to have to busy-wait.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: elegant and effective way for running jobs inside a database
Next
From: Christopher Browne
Date:
Subject: Re: elegant and effective way for running jobs inside a database