Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yv9QT-0007Wd-Cg for pgsql-hackers@arkaria.postgresql.org; Wed, 20 May 2015 19:13:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yv9QS-0005EM-Kh for pgsql-hackers@arkaria.postgresql.org; Wed, 20 May 2015 19:13:08 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yv9QM-00055C-Ce for pgsql-hackers@postgresql.org; Wed, 20 May 2015 19:13:02 +0000 Received: from mail-lb0-f174.google.com ([209.85.217.174]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Yv9LS-0001ZZ-Hq for pgsql-hackers@postgresql.org; Wed, 20 May 2015 19:07:59 +0000 Received: by lbbuc2 with SMTP id uc2so1785625lbb.2 for ; Wed, 20 May 2015 12:07:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=CK49ao5fmyFY3gX9Y56qK8LOamBk+4H+4U1VAXdhYtA=; b=UrJmYN17otBlrZB/YSyfMigEbZlvhyyrYTES6lqjs97hLpNuIhxzZUl2a3IsKDp9E7 /NNO54F8i5F9aeUeFo/3qfU6IbuINFECRbImub1pv1bqth1we6PnSob6nJ6vF1c4H9zt nZGPxp+aHXzSRtQXsoB91zJ/AlvjBpQj0nDFY4JonHKWBwt5KRKrwnHYhv7dGU93mFDZ Wsm6lpz3xpkjL/qgGKVWScqfqO+nWTSqG5uMO/Ssu5BOBFIrCvPot1aHxKudiHttK+97 EGfIus2D7bI38bAfp7hii428bKZZ33V4E405eAxqYPUb4NaQqKu0SbeVZYBvt0aJYk/r Et6Q== X-Gm-Message-State: ALoCoQlTkf9SjB6jPRTS2j8jBkSVSh7+Q2PqE8arwXmP2fPZP1JOXJYzGg5nOYmmdFfv7rnE4ml3 MIME-Version: 1.0 X-Received: by 10.112.72.40 with SMTP id a8mr21343495lbv.58.1432148876585; Wed, 20 May 2015 12:07:56 -0700 (PDT) Received: by 10.114.57.132 with HTTP; Wed, 20 May 2015 12:07:56 -0700 (PDT) In-Reply-To: <20150520182617.GA10047@alap3.anarazel.de> References: <20150508150340.GJ12950@alap3.anarazel.de> <20150520165406.GD27868@alap3.anarazel.de> <20150520171116.GE27868@alap3.anarazel.de> <4215.1432143117@sss.pgh.pa.us> <20150520173706.GF27868@alap3.anarazel.de> <20150520182617.GA10047@alap3.anarazel.de> Date: Wed, 20 May 2015 12:07:56 -0700 Message-ID: Subject: Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0 From: Peter Geoghegan To: Andres Freund Cc: Tom Lane , Thom Brown , hlinnaka , Jeff Janes , Stephen Frost , Dean Rasheed , Bruce Momjian , Pg Hackers Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Wed, May 20, 2015 at 11:26 AM, Andres Freund 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