Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0 - Mailing list pgsql-hackers

From Andres Freund
Subject Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0
Date
Msg-id 20150520173706.GF27868@alap3.anarazel.de
Whole thread Raw
In response to Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0  (Peter Geoghegan <pg@heroku.com>)
List pgsql-hackers
On 2015-05-20 13:31:57 -0400, Tom Lane wrote:
> Sure, but on what basis does it decide that there's a conflict?
> 
> If you can't use an exclusion constraint to support the command,
> then the error message shouldn't be worded like that.

But you *can* use a exclusion constraint for DO NOTHING. Just not (yet)
for DO UPDATE.



pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Disabling trust/ident authentication configure option
Next
From: Alvaro Herrera
Date:
Subject: Re: Typo patch