Re: SET syntax in INSERT

From: Marko Tiikkaja <marko(at)joh(dot)to>
To: Vitaly Burovoy <vitaly(dot)burovoy(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: SET syntax in INSERT
Date: 2016-01-14 20:00:27
Message-ID: 5697FE5B.6040209@joh.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2016-01-14 20:50, Vitaly Burovoy wrote:
> On 1/14/16, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Assume a table with an int-array column, and consider
>>
>> INSERT INTO foo SET arraycol[2] = 7, arraycol[4] = 11;
>
> Right part is a column name, not an expression. Isn't it?
> So "arraycol[2]" is not possible there.

I think the idea here was that it's allowed in UPDATE. But I don't see
the point of allowing that in an INSERT.

.m

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2016-01-14 20:07:05 Re: SET syntax in INSERT
Previous Message Vitaly Burovoy 2016-01-14 19:50:18 Re: SET syntax in INSERT