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 217CB52FE7 for ; Mon, 15 Aug 2005 05:25:28 -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 27226-03 for ; Mon, 15 Aug 2005 08:25:26 +0000 (GMT) Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by svr1.postgresql.org (Postfix) with ESMTP id 81B4452FDD for ; Mon, 15 Aug 2005 05:25:25 -0300 (ADT) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 9D74340C0F9; Mon, 15 Aug 2005 09:25:22 +0100 (BST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 7C17715EDA; Mon, 15 Aug 2005 09:24:41 +0100 (BST) Received: from mainbox.archonet.com ([127.0.0.1]) by localhost (mainbox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25594-04; Mon, 15 Aug 2005 09:24:39 +0100 (BST) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 21E9C15ED9; Mon, 15 Aug 2005 09:24:39 +0100 (BST) Message-ID: <43005146.3020605@archonet.com> Date: Mon, 15 Aug 2005 09:24:38 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: chetzacoalt@free.fr Cc: pgsql-sql@postgresql.org Subject: Re: catch an 'update where false' ? References: <42FF436B.8030701@free.fr> In-Reply-To: <42FF436B.8030701@free.fr> 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.057 required=5 tests=[AWL=0.007, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200508/93 X-Sequence-Number: 22321 santiago wrote: > Hi > > thanks all for your answers ! > > to Lane Van Ingen: > my purpose is to write a trigger on update so that 'users' might then us > update without having to perform the if found. Of course the other option is to make sure there is always a row available to update. Impossible to say whether this is sensible without knowing the precise details of your problem. -- Richard Huxton Archonet Ltd