From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: BUG #15237: I got "ERROR: source for a multiple-column UPDATE item must be a sub-SELECT or ROW() expression"
Date: Fri, 15 Jun 2018 04:59:04 +0100
Message-ID: <871sd8sqxf.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <20180615013800.GO2321@telsasoft.com>
References: <152876885706.32361.1270737678956483321@wrigleys.postgresql.org>
<22079.1528774703@sss.pgh.pa.us>
<87r2lctidw.fsf@news-spur.riddles.org.uk>
<30685.1528815416@sss.pgh.pa.us>
<87sh5rs74y.fsf@news-spur.riddles.org.uk>
<20180615013800.GO2321@telsasoft.com>
>>>>> "Justin" == Justin Pryzby <pryzby@telsasoft.com> writes:
>> It then apparently went unnoticed until after the release of pg 10,
>> at which point it got retroactively documented (in the release notes
>> and nowhere else), in response to a brief discussion of a user
>> complaint that happened on -general and not -hackers (or even
>> -bugs).
Justin> Actually I noticed and pointed out during beta;
Justin> https://www.postgresql.org/message-id/flat/20170719174507.GA19616%40telsasoft.com#20170719174507.GA1...
Interesting, I missed that when searching. So that tells us:
1. Breaking SET (col) = (val) wasn't actually intended or noticed in the
original patch;
2. The break was then defended based on an incorrect reading of the spec
(as I pointed out already on -bugs, the syntax _is_ legal in the spec
with only one column, for just the same reasons that VALUES (1) isn't
required to be VALUES row(1); the spec adds the ROW( ) construct
itself in one of the syntax rules, in a way that's easy to overlook)
--
Andrew (irc:RhodiumToad)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: andrew@tao11.riddles.org.uk, pryzby@telsasoft.com, tgl@sss.pgh.pa.us, pgsql-hackers@lists.postgresql.org
Subject: Re: BUG #15237: I got "ERROR: source for a multiple-column UPDATE item must be a sub-SELECT or ROW() expression"
In-Reply-To: <871sd8sqxf.fsf@news-spur.riddles.org.uk>
References: <152876885706.32361.1270737678956483321@wrigleys.postgresql.org> <22079.1528774703@sss.pgh.pa.us> <87r2lctidw.fsf@news-spur.riddles.org.uk> <30685.1528815416@sss.pgh.pa.us> <87sh5rs74y.fsf@news-spur.riddles.org.uk> <20180615013800.GO2321@telsasoft.com> <871sd8sqxf.fsf@news-spur.riddles.org.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox