pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vivek Khera <vivek@khera.org>
To: pgsql-sql@postgresql.org
Subject: Re: Question on triggers and plpgsql
Date: Fri, 8 Apr 2005 14:02:51 -0400
Message-ID: <986acdb4ff3bdac82c5e09c607bc7839@khera.org> (raw)
In-Reply-To: <20050408145928.GA27718@phlogiston.dyndns.org>
References: <4255AA15.8000508@mochima.com>
	<BE1E8DAA-A829-11D9-9125-000A95B03262@pgedit.com>
	<fef7e50cf33b53ca481ecb2554cd6403@mail.nih.gov>
	<14244.1112970986@sss.pgh.pa.us>
	<20050408145928.GA27718@phlogiston.dyndns.org>


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

Attachments:

  smime.p7s (application/pkcs7-signature, 2.4K) download

view thread (14+ messages)  latest in thread

Message-ID: <986acdb4ff3bdac82c5e09c607bc7839@khera.org>
Permalink:  ../986acdb4ff3bdac82c5e09c607bc7839@khera.org/
Also on:    postgresql.org/message-id/986acdb4ff3bdac82c5e09c607bc7839@khera.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: vivek@khera.org
  Subject: Re: Question on triggers and plpgsql
  In-Reply-To: <986acdb4ff3bdac82c5e09c607bc7839@khera.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox