Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 4C3751337BA8 for ; Thu, 18 Nov 2010 12:49:11 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 97006-02-2 for ; Thu, 18 Nov 2010 16:49:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 2628A1337B9A for ; Thu, 18 Nov 2010 12:49:09 -0400 (AST) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id oAIGn9Yk060903 for ; Thu, 18 Nov 2010 16:49:09 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id oAIGn9AP060902; Thu, 18 Nov 2010 16:49:09 GMT (envelope-from www) Date: Thu, 18 Nov 2010 16:49:09 GMT Message-Id: <201011181649.oAIGn9AP060902@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5757: PL/PGSQL composite variable field error reporting From: "Andrey Galkin" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201011/128 X-Sequence-Number: 28708 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 The error is not very helpful. If it's possible please detect the incorrectly referenced field at parsing/statement preparing time.