Re: Supporting multiple column assignment in UPDATE (9.5 project)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Merlin Moncure <mmoncure(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Supporting multiple column assignment in UPDATE (9.5 project)
Date: 2014-05-02 20:03:36
Message-ID: 7915.1399061016@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Merlin Moncure <mmoncure(at)gmail(dot)com> writes:
> On Fri, May 2, 2014 at 2:47 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> But I don't think your suggestions of the table name or alias work;
>> they could conflict with an actual column name.

> Presumably it'd follow similar rules to SELECT -- resolve the column
> name in the face of ambiguity.

Meh. Then you could have a query that works fine until you add a column
to the table, and it stops working. If nobody ever used column names
identical to table names it'd be all right, but unfortunately people
seem to do that a lot...

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Merlin Moncure 2014-05-02 20:10:19 Re: Supporting multiple column assignment in UPDATE (9.5 project)
Previous Message Merlin Moncure 2014-05-02 19:59:49 Re: Supporting multiple column assignment in UPDATE (9.5 project)