Re: UPDATE syntax change (column-list UPDATE syntax fails with single column)

From: Justin Pryzby <pryzby(at)telsasoft(dot)com>
To: Adam Brusselback <adambrusselback(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: UPDATE syntax change (column-list UPDATE syntax fails with single column)
Date: 2017-10-30 16:34:04
Message-ID: 20171030163404.GF21735@telsasoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Oct 30, 2017 at 12:29:03PM -0400, Adam Brusselback wrote:
> I have some queries that were working in 9.6 which suddenly broke when
> moving to 10.
>
> Digging in, the error i'm getting is: ERROR: source for a
> multiple-column UPDATE item must be a sub-SELECT or ROW() expression

> So there was a change made, and you now cannot use the multi-column
> syntax if you're only updating a single column. Was this intentional?

I found the same while testing during beta:
https://www.postgresql.org/message-id/flat/20170719174507(dot)GA19616%40telsasoft(dot)com#20170719174507(dot)GA19616(at)telsasoft(dot)com

Justin

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephen Frost 2017-10-30 16:41:11 Re: Backup strategy using 'wal_keep_segments'
Previous Message Peter Geoghegan 2017-10-30 16:32:01 Re: gin index trouble