X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 947A6D1B520 for ; Thu, 23 Oct 2003 13:45:09 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 57138-01 for ; Thu, 23 Oct 2003 10:44:41 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id C28A9D1B50C for ; Thu, 23 Oct 2003 10:44:36 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h9NDiSit029257; Thu, 23 Oct 2003 09:44:28 -0400 (EDT) To: Peter Childs Cc: Alvaro Herrera , "scott.marlowe" , pgsql-general@postgresql.org Subject: Re: Trigger In-reply-to: References: <20031023114719.GA23703@dcc.uchile.cl> Comments: In-reply-to Peter Childs message dated "Thu, 23 Oct 2003 13:06:46 +0100" Date: Thu, 23 Oct 2003 09:44:28 -0400 Message-ID: <29256.1066916668@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/1121 X-Sequence-Number: 51194 Peter Childs 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