Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yq17V-0007nP-AO for pgsql-hackers@arkaria.postgresql.org; Wed, 06 May 2015 15:20:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yq17U-00049j-P5 for pgsql-hackers@arkaria.postgresql.org; Wed, 06 May 2015 15:20:20 +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 1Yq17T-000481-Ds for pgsql-hackers@postgresql.org; Wed, 06 May 2015 15:20:19 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Yq17Q-0004i3-P4 for pgsql-hackers@postgresql.org; Wed, 06 May 2015 15:20:18 +0000 Received: from intern.anarazel.de (unknown [37.83.128.237]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 70469860001; Wed, 6 May 2015 17:20:15 +0200 (CEST) Date: Wed, 6 May 2015 17:20:07 +0200 From: Andres Freund To: Peter Geoghegan Cc: hlinnaka , Jeff Janes , Stephen Frost , Dean Rasheed , Bruce Momjian , Pg Hackers Subject: Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0 Message-ID: <20150506152007.GN9855@alap3.anarazel.de> References: <20150505154030.GI9855@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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-05 15:00:56 -0700, Peter Geoghegan wrote: > Locking the row is not "nothing", though. If you want to lock the row, > use an UPSERT with a tautologically false WHERE clause (like "WHERE > false"). That's not the same. For one it "breaks" RETURNING which is a death knell, for another it's not exactly obvious. 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