pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Childs <blue.dragon@blueyonder.co.uk>
Cc: Alvaro Herrera <alvherre@dcc.uchile.cl>
Cc: scott.marlowe <scott.marlowe@ihs.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Trigger
Date: Thu, 23 Oct 2003 09:44:28 -0400
Message-ID: <29256.1066916668@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.58.0310231301260.15015@bluedragon.homelinux.net>
References: <Pine.LNX.4.33.0310221306330.12830-100000@css120.ihs.com>
	<Pine.LNX.4.58.0310230811060.11940@bluedragon.homelinux.net>
	<20031023114719.GA23703@dcc.uchile.cl>
	<Pine.LNX.4.58.0310231301260.15015@bluedragon.homelinux.net>

Peter Childs <blue.dragon@blueyonder.co.uk> writes:
> 	Great idea shame drivers to get at these are rare. Anyway you
> still need a trigger to fire the notify and these get sent when the query
> is done not when its commented. hmmm

But the NOTIFY isn't delivered until and unless the transaction commits.
This gets around the AFTER-trigger-can-still-roll-back problem.

			regards, tom lane



view thread (47+ messages)  latest in thread

Message-ID: <29256.1066916668@sss.pgh.pa.us>
Permalink:  ../29256.1066916668@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29256.1066916668@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, blue.dragon@blueyonder.co.uk, alvherre@dcc.uchile.cl, scott.marlowe@ihs.com
  Subject: Re: Trigger
  In-Reply-To: <29256.1066916668@sss.pgh.pa.us>
  References: <Pine.LNX.4.33.0310221306330.12830-100000@css120.ihs.com> <Pine.LNX.4.58.0310230811060.11940@bluedragon.homelinux.net> <20031023114719.GA23703@dcc.uchile.cl> <Pine.LNX.4.58.0310231301260.15015@bluedragon.homelinux.net> <29256.1066916668@sss.pgh.pa.us>

* 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