Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 94D54B5DBD9 for ; Tue, 14 Jun 2011 11:55:51 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 24741-04-4 for ; Tue, 14 Jun 2011 14:55:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id E1AABB5D80B for ; Tue, 14 Jun 2011 11:55:29 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p5EEtRCk028344; Tue, 14 Jun 2011 10:55:27 -0400 (EDT) To: Merlin Moncure cc: Maxim Boguk , Robert Haas , pgsql-bugs@postgresql.org Subject: Re: BUG #5798: Some weird error with pl/pgsql procedure In-reply-to: References: <201012210248.oBL2m9sp090535@wwwmaster.postgresql.org> <28329.1298131693@sss.pgh.pa.us> <10910.1298236066@sss.pgh.pa.us> <26057.1298311836@sss.pgh.pa.us> <9875.1298334660@sss.pgh.pa.us> Comments: In-reply-to Merlin Moncure message dated "Tue, 14 Jun 2011 09:39:29 -0500" Date: Tue, 14 Jun 2011 10:55:27 -0400 Message-ID: <28343.1308063327@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/106 X-Sequence-Number: 30485 Merlin Moncure writes: > I bumped into the 'virtual tuple' error on 9.0.3 on a completely > unrelated query: > create table foo(a int, b int); > insert into foo select 1, 1 where not exists (select 1 from foo where > a = 1 for update); > 9.0.4 got rid of the error, but as there are no triggers or anything > like that on the foo so I thought I'd post my findings here in case > anyone else bumped into it. I think most likely this has to do with commit d5478c3391f8f1a243abbc3d9253aac3d6d3538e, and is unrelated (except in the error message) to that trigger issue. regards, tom lane