Re: INSERT ... ON CONFLICT syntax issues - Mailing list pgsql-hackers

From Geoff Winkless
Subject Re: INSERT ... ON CONFLICT syntax issues
Date
Msg-id CAEzk6ffVmfF8bY=6+LvTwe6i1ZAwVoCManBzHhDGEjsNQ0E5pA@mail.gmail.com
Whole thread Raw
In response to Re: INSERT ... ON CONFLICT syntax issues  (Heikki Linnakangas <hlinnaka@iki.fi>)
List pgsql-hackers
On 6 May 2015 at 22:30, Heikki Linnakangas <hlinnaka@iki.fi> wrote:
On 05/07/2015 12:01 AM, Andres Freund wrote:
On 2015-05-06 23:48:18 +0300, Heikki Linnakangas wrote:
I'll see about fixing that. It's not just a matter of creating another alias
for the same rel, I'm afraid: "foo.t" is supposed to refer to the tuple that
we attempted to insert, like it does without the ON CONFLICT.

I'm not sure what you mean here?

Sorry, forget about that. I was confused and mixed up EXCLUDED and TARGET. Looks like they really aren't very good names :-).

Could
INSERT.column 
​and ​
CONFLICT.column work? 

So INSERT is the row that you were inserting, and CONFLICT is the row with which it conflicted?
Geoff

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Parallel Seq Scan
Next
From: Magnus Hagander
Date:
Subject: Re: Resource leak in pg_dump.c caused by transforms