Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fTftK-0003Fb-51 for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Jun 2018 03:59:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fTftI-00088T-KE for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Jun 2018 03:59:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fTftI-00088K-DK for pgsql-hackers@lists.postgresql.org; Fri, 15 Jun 2018 03:59:12 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fTftE-0001Vv-OL for pgsql-hackers@lists.postgresql.org; Fri, 15 Jun 2018 03:59:11 +0000 Received: from [192.168.127.1] (port=64813 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1fTftC-000Pg3-A7; Fri, 15 Jun 2018 03:59:06 +0000 Received: from [127.0.0.1] (port=13672 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1fTftB-000CKD-HD; Fri, 15 Jun 2018 03:59:05 +0000 From: Andrew Gierth To: Justin Pryzby Cc: Tom Lane , 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: <20180615013800.GO2321@telsasoft.com> (Justin Pryzby's message of "Thu, 14 Jun 2018 20:38:00 -0500") Message-ID: <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> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Fri, 15 Jun 2018 04:59:04 +0100 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Justin" == Justin Pryzby 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.GA19616@telsasoft.com 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)