Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XyOp1-0002dE-Pi for pgsql-bugs@arkaria.postgresql.org; Tue, 09 Dec 2014 17:43:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XyOp1-0008WA-7M for pgsql-bugs@arkaria.postgresql.org; Tue, 09 Dec 2014 17:43:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XyOp0-0008VM-6a for pgsql-bugs@postgresql.org; Tue, 09 Dec 2014 17:43:38 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XyOot-0005HS-8T for pgsql-bugs@postgresql.org; Tue, 09 Dec 2014 17:43:37 +0000 Received: from intern.anarazel.de (ip-64-134-228-215.public.wayport.net [64.134.228.215]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 2728A460002; Tue, 9 Dec 2014 18:43:29 +0100 (CET) Date: Tue, 9 Dec 2014 18:43:20 +0100 From: Andres Freund To: Andrew Sackville-West Cc: Alvaro Herrera , hubert depesz lubaczewski , Mark Kirkwood , pgsql-bugs@postgresql.org, Paulo Tanimoto Subject: Re: regression, deadlock in high frequency single-row UPDATE Message-ID: <20141209174320.GE4922@alap3.anarazel.de> References: <20140731233051.GN17765@andrew-ThinkPad-X230> <20140801005950.GF5475@eldon.alvh.no-ip.org> <20140804161205.GA30380@andrew-ThinkPad-X230> <20140804163027.GI5475@eldon.alvh.no-ip.org> <20141208235552.GZ6930@andrew-ThinkPad-X230> <54868FA2.80003@catalyst.net.nz> <20141209141448.GO1768@alvh.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -0.1 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2014-12-09 09:38:33 -0800, Andrew Sackville-West wrote: > On Tue, Dec 9, 2014 at 6:14 AM, Alvaro Herrera > wrote: > > > hubert depesz lubaczewski wrote: > > > For whatever it's worth, I was able to bisect the problem to this commit: > > > > > > commit > > > 0ac5ad5134f2769ccbaefec73844f8504c4d6182 > > > > > > Author: Alvaro Herrera > > > > > > Date: Wed Jan 23 12:04:59 2013 -0300 > > > > > > Improve concurrency of foreign key locking > > > > I'm not surprised in the least, TBH. > > > > > Thanks for your attention to this. Is there anything we're doing wrong that > could improve this in current 9.3 versions? I don't think anybody can seriously can give you a serious workaround until the issue has been diagnosed further. One thing you could try would be to create a unique index that spans all the columns in the table... That'd prevent usage of lower locklevels added in the above commit. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs