Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yqmfc-00006G-TV for pgsql-hackers@arkaria.postgresql.org; Fri, 08 May 2015 18:06:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yqmfc-0002eP-EG for pgsql-hackers@arkaria.postgresql.org; Fri, 08 May 2015 18:06:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yqmfb-0002e6-9C for pgsql-hackers@postgresql.org; Fri, 08 May 2015 18:06:43 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1YqmfY-0002ri-Ec for pgsql-hackers@postgresql.org; Fri, 08 May 2015 18:06:42 +0000 Received: from intern.anarazel.de (unknown [184.23.178.130]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 172CB860001; Fri, 8 May 2015 20:06:39 +0200 (CEST) Date: Fri, 8 May 2015 20:06:36 +0200 From: Andres Freund To: Heikki Linnakangas Cc: Tom Lane , Peter Geoghegan , Jeff Janes , Stephen Frost , Dean Rasheed , Bruce Momjian , Pg Hackers Subject: Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0 Message-ID: <20150508180636.GR12950@alap3.anarazel.de> References: <20150508150340.GJ12950@alap3.anarazel.de> <9096.1431102730@sss.pgh.pa.us> <20150508165246.GO12950@alap3.anarazel.de> <10633.1431105922@sss.pgh.pa.us> <554CF44B.3080808@iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <554CF44B.3080808@iki.fi> X-Pg-Spam-Score: -2.7 (--) 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 2015-05-08 20:37:15 +0300, Heikki Linnakangas wrote: > Why does INSERT ON CONFLICT pay attention to indcheckxmin? Uniqueness check > only cares about the most recent committed version of the tuple, and the > index good for that use immediately. If there was a problem there, the > uniqueness check in a normal insert have the same problem. Yea, that's a good angle to view this from. That'd not be the case, I think, if we'd allow this to be used on system relations. But since neither creating an index on system relations, nor using INSERT ON CONFLICT on them is supported... 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