X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CB26E3A457E for ; Thu, 25 Nov 2004 12:54:52 +0000 (GMT) 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 46879-02 for ; Thu, 25 Nov 2004 12:54:47 +0000 (GMT) Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by svr1.postgresql.org (Postfix) with ESMTP id 974223A451C for ; Thu, 25 Nov 2004 12:54:50 +0000 (GMT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-30.mail.demon.net with esmtp (Exim 4.42) id 1CXJ95-000PSg-29; Thu, 25 Nov 2004 12:54:47 +0000 Received: from [192.168.1.17] (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id A03A5158FC; Thu, 25 Nov 2004 12:54:46 +0000 (GMT) Message-ID: <41A5D616.4090308@archonet.com> Date: Thu, 25 Nov 2004 12:54:46 +0000 From: Richard Huxton User-Agent: Mozilla Thunderbird 0.9 (X11/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "ON.KG" Cc: pgsql-general@postgresql.org Subject: Re: Trigger before insert References: <200411251400.32752.jerome@gmanmi.tv> <41A584EE111.0263KG@129.180.47.120> <9414883125.20041125143740@on.kg> In-Reply-To: <9414883125.20041125143740@on.kg> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/1274 X-Sequence-Number: 69354 ON.KG wrote: > > How could i stop Inserting record into table by some condition? RETURN null when using a before trigger. Or raise an exception to abort the whole transaction. -- Richard Huxton Archonet Ltd