pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Geoghegan <pg@heroku.com>
To: Andres Freund <andres@anarazel.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Thom Brown <thom@linux.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 12:07:56 -0700
Message-ID: <CAM3SWZSP3YxqKXaQ2aa6TFwhD1TuaeOPqimOgH_RTK1ZsDXSow@mail.gmail.com> (raw)
In-Reply-To: <20150520182617.GA10047@alap3.anarazel.de>
References: <CAM3SWZTGE0z5_E8wRi9wt3qgOiMpSwtwr5uDcZDGhRZ1_pz6vg@mail.gmail.com>
	<20150508150340.GJ12950@alap3.anarazel.de>
	<CAA-aLv6gJ0Ur4rsrv4gfban9w6B16FN5K6tozxUgcNMCBdV00g@mail.gmail.com>
	<20150520165406.GD27868@alap3.anarazel.de>
	<CAA-aLv7PwX24Ex2EWceOUtg0oEjdTbYiQ670j4dWf2nR369oUA@mail.gmail.com>
	<20150520171116.GE27868@alap3.anarazel.de>
	<4215.1432143117@sss.pgh.pa.us>
	<20150520173706.GF27868@alap3.anarazel.de>
	<CAM3SWZRK5NTNYM+ygbbAvCt4ezOkvBFtuoOu78DQJhs-C=0Eyw@mail.gmail.com>
	<20150520182617.GA10047@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On Wed, May 20, 2015 at 11:26 AM, Andres Freund <andres@anarazel.de> wrote:
> Even if maybe not directly under the guise of exclusion constraints
> themselves, but I do think it's an interesting way to more easily allow
> to implement unique constraints on !amcanunique type indexes.  Or, more
> interestingly, for unique keys spanning partitions

Alright, then. It's just that at one point people seemed to think that
upsert should support exclusion constraints, and that position was, at
the time, lacking a good justification IMV. What you talk about here
seems much more practical than generalizing upsert to work with
exclusion constraints. You're talking about exclusion constraints as
an implementation detail of something interesting, which I had not
considered.


-- 
Peter Geoghegan


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (77+ messages)  latest in thread

Message-ID: <CAM3SWZSP3YxqKXaQ2aa6TFwhD1TuaeOPqimOgH_RTK1ZsDXSow@mail.gmail.com>
Permalink:  ../CAM3SWZSP3YxqKXaQ2aa6TFwhD1TuaeOPqimOgH_RTK1ZsDXSow@mail.gmail.com/
Also on:    postgresql.org/message-id/CAM3SWZSP3YxqKXaQ2aa6TFwhD1TuaeOPqimOgH_RTK1ZsDXSow@mail.gmail.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: pg@heroku.com, andres@anarazel.de, tgl@sss.pgh.pa.us, thom@linux.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: <CAM3SWZSP3YxqKXaQ2aa6TFwhD1TuaeOPqimOgH_RTK1ZsDXSow@mail.gmail.com>
  References: <CAM3SWZTGE0z5_E8wRi9wt3qgOiMpSwtwr5uDcZDGhRZ1_pz6vg@mail.gmail.com> <20150508150340.GJ12950@alap3.anarazel.de> <CAA-aLv6gJ0Ur4rsrv4gfban9w6B16FN5K6tozxUgcNMCBdV00g@mail.gmail.com> <20150520165406.GD27868@alap3.anarazel.de> <CAA-aLv7PwX24Ex2EWceOUtg0oEjdTbYiQ670j4dWf2nR369oUA@mail.gmail.com> <20150520171116.GE27868@alap3.anarazel.de> <4215.1432143117@sss.pgh.pa.us> <20150520173706.GF27868@alap3.anarazel.de> <CAM3SWZRK5NTNYM+ygbbAvCt4ezOkvBFtuoOu78DQJhs-C=0Eyw@mail.gmail.com> <20150520182617.GA10047@alap3.anarazel.de> <CAM3SWZSP3YxqKXaQ2aa6TFwhD1TuaeOPqimOgH_RTK1ZsDXSow@mail.gmail.com>

* 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