Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lDUeL-0004BQ-MB for pgsql-sql@arkaria.postgresql.org; Sat, 20 Feb 2021 15:58:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lDUeK-0001Dw-J2 for pgsql-sql@arkaria.postgresql.org; Sat, 20 Feb 2021 15:58:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lDUeK-0001Dp-D9 for pgsql-sql@lists.postgresql.org; Sat, 20 Feb 2021 15:58:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lDUeH-0005G7-Ca for pgsql-sql@lists.postgresql.org; Sat, 20 Feb 2021 15:58:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 11KFwLO03196309; Sat, 20 Feb 2021 10:58:21 -0500 From: Tom Lane To: "David G. Johnston" cc: Arturo Guadagnin , "pgsql-sql@lists.postgresql.org" Subject: Re: embedded composite types In-reply-to: References: <60311f89.1c69fb81.3220e.2fd4@mx.google.com> Comments: In-reply-to "David G. Johnston" message dated "Sat, 20 Feb 2021 08:07:49 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <3196307.1613836701.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Sat, 20 Feb 2021 10:58:21 -0500 Message-ID: <3196308.1613836701@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "David G. Johnston" writes: > On Saturday, February 20, 2021, Arturo Guadagnin > wrote: >> I’m just wondering whether this is the expected behaviour or if there is >> any syntactical magic I’m not aware of .... > https://www.postgresql.org/docs/current/sql-expressions.html#FIELD-SELECTION Yeah. Also note that we only recently got around to fixing plpgsql assignment to allow nested fields; that is declare p Point2; ... p.pt1.x = 42; works in HEAD but not in any released version. regards, tom lane