Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tdwev-0000bm-49 for pgsql-bugs@arkaria.postgresql.org; Thu, 29 Nov 2012 05:27:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tdweu-0007ck-2W for pgsql-bugs@arkaria.postgresql.org; Thu, 29 Nov 2012 05:27:36 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tdwet-0007cf-DE for pgsql-bugs@postgresql.org; Thu, 29 Nov 2012 05:27:35 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tdwes-0000Zn-Dd for pgsql-bugs@postgresql.org; Thu, 29 Nov 2012 05:27:34 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tdwer-0004V2-Im for pgsql-bugs@postgresql.org; Thu, 29 Nov 2012 05:27:34 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1Tdwer-0000Ff-5m for pgsql-bugs@postgresql.org; Thu, 29 Nov 2012 05:27:33 +0000 Date: Thu, 29 Nov 2012 05:27:33 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7711: Accessing nested composite types in PL/PgSQL doesn't work To: pgsql-bugs@postgresql.org From: mkolomeitsev@gmail.com X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 7711 Logged by: Michael Kolomeitsev Email address: mkolomeitsev@gmail.com PostgreSQL version: 9.2.1 Operating system: Arch Linux Description:=20=20=20=20=20=20=20=20 It seems multiple dots (".") are not allowed. For example: a.b.c :=3D value; How to reproduce: CREATE TABLE nodes ( id SERIAL NOT NULL PRIMARY KEY, name TEXT NOT NULL ); CREATE TYPE pathId AS ( id INTEGER, node nodes ); CREATE OR REPLACE FUNCTION test_AEN7304() RETURNS void AS $$ DECLARE r pathId; n nodes; BEGIN n.name :=3D 'abc'; r.id :=3D 1; r.node :=3D n; -- All is ok r.node.name :=3D 'def'; -- << Error here -- (r).node.name :=3D 'def'; -- << and here -- ((r).node).name :=3D 'def'; -- << and here END; $$ LANGUAGE 'plpgsql'; ERROR: "r.node.name" is not a known variable (From http://archives.postgresql.org/pgsql-novice/2012-11/msg00057.php) --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs