Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 2C6551337B5A for ; Thu, 18 Nov 2010 13:53:38 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 56472-09 for ; Thu, 18 Nov 2010 17:53:31 +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 AEA40133616B for ; Thu, 18 Nov 2010 13:53:30 -0400 (AST) 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 oAIHrTn7003852; Thu, 18 Nov 2010 12:53:29 -0500 (EST) To: "Andrey Galkin" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #5757: PL/PGSQL composite variable field error reporting In-reply-to: <201011181649.oAIGn9AP060902@wwwmaster.postgresql.org> References: <201011181649.oAIGn9AP060902@wwwmaster.postgresql.org> Comments: In-reply-to "Andrey Galkin" message dated "Thu, 18 Nov 2010 16:49:09 +0000" Date: Thu, 18 Nov 2010 12:53:29 -0500 Message-ID: <3851.1290102809@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: 201011/129 X-Sequence-Number: 28709 "Andrey Galkin" writes: > The following bug has been logged online: > Bug reference: 5757 > Logged by: Andrey Galkin > Email address: andvgal@gmail.com > PostgreSQL version: 9.0.1 > Operating system: Debian unstable > Description: PL/PGSQL composite variable field error reporting > Details: > 1. Create a variable of composite type in PL/PGSQL function > 2. Try to reference not existing field of the variable in some statement, > like IF > 3. Get "missing FROM-clause entry for table" error at runtime Please provide a complete test-case, not a vague description. regards, tom lane