X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 370975321D for ; Tue, 12 Apr 2005 12:45:37 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 37643-10 for ; Tue, 12 Apr 2005 15:45:32 +0000 (GMT) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by svr1.postgresql.org (Postfix) with ESMTP id 6ACE35320B for ; Tue, 12 Apr 2005 12:45:31 -0300 (ADT) Received: from [192.168.0.2] ([24.201.88.196]) by VL-MO-MR007.ip.videotron.ca (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0IEU00A0MBQMAN@VL-MO-MR007.ip.videotron.ca> for pgsql-sql@postgresql.org; Tue, 12 Apr 2005 11:44:46 -0400 (EDT) Date: Tue, 12 Apr 2005 11:47:54 -0400 From: Carlos Moreno Subject: Re: Update aborted if trigger function fails? In-reply-to: <20050412151721.GA4291@phlogiston.dyndns.org> To: pgsql-sql@postgresql.org Message-id: <425BEDAA.5060802@mochima.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616 References: <425ADE3F.1090206@mochima.com> <425B7920.4040002@archonet.com> <425BE162.6010501@mochima.com> <20050412151721.GA4291@phlogiston.dyndns.org> X-Virus-Scanned: by amavisd-new at hub.org X-Archive-Number: 200504/166 X-Sequence-Number: 21059 Andrew Sullivan wrote: > On Tue, Apr 12, 2005 at 10:55:30AM -0400, Carlos Moreno wrote: > >>I guess the concern came up as result of a particular >>situation, in which failing to properly process the >>trigger function is not that crucial (I wanted to >>update some additional information that is "optional", >>and that can be reconstructed easily after discovering >>that the trigger function had been failing). But in > > > If you can do some things asynchronously, and you don't care about > them very much, then you can use LISTEN/NOTIFY to do such processing. Thanks Andrew for the suggestion -- this may as well be exactly the feature that I needed to begin with. I'm not familiar with the details, but I'll go right away to dig through the docs. Thanks! Carlos --