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 DB2A78B9F21 for ; Sun, 13 Feb 2005 01:57:22 +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 52776-10 for ; Sun, 13 Feb 2005 01:57:12 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 8B00F8B9F2F for ; Sun, 13 Feb 2005 01:57:11 +0000 (GMT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.1/8.13.1) with ESMTP id j1D1v8p4024574 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 12 Feb 2005 18:57:11 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.1/8.13.1) with ESMTP id j1D1v8Rk025216; Sat, 12 Feb 2005 18:57:08 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.1/8.13.1/Submit) id j1D1v762025215; Sat, 12 Feb 2005 18:57:07 -0700 (MST) (envelope-from mfuhr) Date: Sat, 12 Feb 2005 18:57:07 -0700 From: Michael Fuhr To: =?iso-8859-1?Q?K=D6PFERL?= Robert Cc: pgsql-sql@postgresql.org Subject: Re: Constraint doesn't see a currently insertet record Message-ID: <20050213015707.GA25192@winnie.fuhr.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.003 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/136 X-Sequence-Number: 20247 On Fri, Feb 11, 2005 at 07:10:50PM +0100, KÖPFERL Robert wrote: > Another Idea was to make a trigger. But BTW how do I access a trigger > parameter if my trigger function must not have any parameter?????????? PL/pgSQL triggers can access arguments via TG_ARGV. http://www.postgresql.org/docs/8.0/static/plpgsql-trigger.html -- Michael Fuhr http://www.fuhr.org/~mfuhr/