X-Original-To: pgsql-hackers-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 7C97E9FB256 for ; Wed, 2 Aug 2006 10:30:48 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 10578-06 for ; Wed, 2 Aug 2006 13:30:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from momjian.us (momjian.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 37CA29FB2BE for ; Wed, 2 Aug 2006 10:30:33 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id k72DUTp09254; Wed, 2 Aug 2006 09:30:29 -0400 (EDT) From: Bruce Momjian Message-Id: <200608021330.k72DUTp09254@momjian.us> Subject: Re: Values list-of-targetlists patch for comments (was Re: In-Reply-To: <1CD9D95B-E824-4A0D-85BB-279AD06B931C@seespotcode.net> To: Michael Glaesemann Date: Wed, 2 Aug 2006 09:30:29 -0400 (EDT) CC: Joe Conway , Tom Lane , "Hackers (PostgreSQL)" X-Mailer: ELM [version 2.4ME+ PL122k (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=3.816 tagged_above=0 required=5 tests=SPF_HELO_SOFTFAIL, SPF_SOFTFAIL X-Spam-Level: *** X-Archive-Number: 200608/78 X-Sequence-Number: 87571 Michael Glaesemann wrote: > On Aug 2, 2006, at 12:47 , Joe Conway wrote: > > > > regression=# create rule r2 as on update to src do insert into log > > values(old.*, 'old'), (new.*, 'new'); > > ERROR: VALUES must not contain OLD or NEW references > > > > Would it make sense to add a HINT as well, recommending the UNION > construct Tom mentioned earlier? Agreed. -- Bruce Momjian bruce@momjian.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +