From: Andres Freund <andres@anarazel.de>
To: Thom Brown <thom@linux.com>
Cc: Peter Geoghegan <pg@heroku.com>
Cc: hlinnaka <hlinnaka@iki.fi>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Dean Rasheed <dean.a.rasheed@gmail.com>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Subject: Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0
Date: Wed, 20 May 2015 18:54:06 +0200
Message-ID: <20150520165406.GD27868@alap3.anarazel.de> (raw)
In-Reply-To: <CAA-aLv6gJ0Ur4rsrv4gfban9w6B16FN5K6tozxUgcNMCBdV00g@mail.gmail.com>
References: <CAM3SWZTGE0z5_E8wRi9wt3qgOiMpSwtwr5uDcZDGhRZ1_pz6vg@mail.gmail.com>
<20150508150340.GJ12950@alap3.anarazel.de>
<CAA-aLv6gJ0Ur4rsrv4gfban9w6B16FN5K6tozxUgcNMCBdV00g@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 2015-05-20 17:44:05 +0100, Thom Brown wrote:
> On 8 May 2015 at 16:03, Andres Freund <andres@anarazel.de> wrote:
> > So I've committed the patch yesterday evening. I'm pretty sure there'll
> > be some more minor things to change. But overall I feel good about the
> > current state.
> >
> > It'd be quite helpful if others could read the docs, specifically for
> > insert, and comment whether they're understandable. I've spent a fair
> > amount of time trying to make them somewhat simpler, but I do think I
> > only succeeded partially. And there's also my own brand of english to
> > consider ;)
>
> The docs say "Note that exclusion constraints are not supported with
> ON CONFLICT DO UPDATE."
>
> But I get the following error message text:
>
> "ERROR: there is no unique or exclusion constraint matching the ON
> CONFLICT specification"
>
> This implies that an exclusion constraint is valid in the statement,
> which contradicts the docs. Which one is correct?
ON CONFLICT can be used for ... DO NOTHING as well.
Greetings,
Andres Freund
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: andres@anarazel.de, thom@linux.com, pg@heroku.com, hlinnaka@iki.fi, jeff.janes@gmail.com, sfrost@snowman.net, dean.a.rasheed@gmail.com, bruce@momjian.us, pgsql-hackers@postgresql.org
Subject: Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0
In-Reply-To: <20150520165406.GD27868@alap3.anarazel.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox