Re: INSERT ... ON CONFLICT syntax issues

From: Geoff Winkless <pgsqladmin(at)geoff(dot)dj>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: INSERT ... ON CONFLICT syntax issues
Date: 2015-04-28 15:12:11
Message-ID: CAEzk6fcD=6JwNxzBTM+LLcbv3neR1xH-3xRKXdJaBCLnux9G1g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 28 April 2015 at 15:57, I wrote:

> ​MySQL uses VALUES(columnname) to reference the intended INSERT value
> (what you might term "NEW") and the target name to reference "OLD". I
> understand that people might think the bracketed syntax isn't very pleasant
> because that looks like a function, but it seems more reasonable than NEW
> (can we use VALUES.columname?);
>


On balance I
​think I ​
don't like VALUES.column either
​, because although it looks all fine when you're doing a single INSERT ...
VALUES () it gets confusing if you're INSERTing from a SELECT.

​As you were. :(

Geoff

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Steele 2015-04-28 15:17:11 Re: Auditing extension for PostgreSQL (Take 2)
Previous Message Geoff Winkless 2015-04-28 14:57:07 Re: INSERT ... ON CONFLICT syntax issues