agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Arturo Guadagnin <tuirutuiru@gmail.com>
Cc: pgsql-sql@lists.postgresql.org <pgsql-sql@lists.postgresql.org>
Subject: Re: embedded composite types
Date: Sat, 20 Feb 2021 10:58:21 -0500
Message-ID: <3196308.1613836701@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwamyzHNptbFL29wo7H4WwVTY6PV3SBwN51AzKB0bCkfGg@mail.gmail.com>
References: <60311f89.1c69fb81.3220e.2fd4@mx.google.com>
<CAKFQuwamyzHNptbFL29wo7H4WwVTY6PV3SBwN51AzKB0bCkfGg@mail.gmail.com>
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Saturday, February 20, 2021, Arturo Guadagnin <tuirutuiru@gmail.com>
> 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
view thread (3+ messages)
Message-ID: <3196308.1613836701@sss.pgh.pa.us>
Permalink: ../3196308.1613836701@sss.pgh.pa.us/
Also on: postgresql.org/message-id/3196308.1613836701@sss.pgh.pa.us
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, tuirutuiru@gmail.com, pgsql-sql@lists.postgresql.org
Subject: Re: embedded composite types
In-Reply-To: <3196308.1613836701@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox