Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xyk9b-0000Ml-CG for pgsql-bugs@arkaria.postgresql.org; Wed, 10 Dec 2014 16:30:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xyk9a-00057b-TK for pgsql-bugs@arkaria.postgresql.org; Wed, 10 Dec 2014 16:30:18 +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 1Xyk9Z-000578-MQ for pgsql-bugs@postgresql.org; Wed, 10 Dec 2014 16:30:17 +0000 Received: from mail-pd0-x22a.google.com ([2607:f8b0:400e:c02::22a]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Xyk9R-0005hG-28 for pgsql-bugs@postgresql.org; Wed, 10 Dec 2014 16:30:16 +0000 Received: by mail-pd0-f170.google.com with SMTP id v10so3081132pde.29 for ; Wed, 10 Dec 2014 08:30:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janrain.com; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=HLe0jFLUajjSx0K6j0xhPlH4wBrPNILVGg+Or3jyG+s=; b=SkRJPq1+Ff5L3IHp7/pmgB00L6c8K7oy9Tk3LKyFWyMZKJw21JcWzMHV81CwSoImmJ aOU+EzaUcVeOAX7q0mUEccc3wEnr8iB9IOpYh9LZnmD74iYHDrKKtCuM1sGol2NkT+hS DmUfsIQv1wH7b0ozd+T2Wu4w7rI/J2zuezMJg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=HLe0jFLUajjSx0K6j0xhPlH4wBrPNILVGg+Or3jyG+s=; b=Y1fk/BL7OjVbmwExATLkSH6mgy2pYq50I9m/fDjPFAikfOy3JOV4AytajhRkIHVDgg 1b8hYjpgixwuNdrjBxSzUV9LawCsw+/M94hkua3NTB8OpNDhBcluFrYe4xFcsBPIVzus Jajj+HtnrGDKHWGtrtpx8EqTWkggrpsFMF19MvaMvKgaaQpbr4OBaFSBCA36a4UShHNW eq/ZdzccD6APnP36FMOQuhS5ZTnmdw2HP3zj1GrqfSwZzg2RfE/OsK0SQvcyi4XrNzer tL+KcQGyokQ5VWtfXdiXbVFjp4CB6W7MefYU6+GJ1wMQXXABaLNqRhJ1lEhiFWLTHCIB oSRw== X-Gm-Message-State: ALoCoQmQa7VAE2zeH3bg4JZLMjn6VzQEDKpyUa2sOdmm1+erd4E7S/BHANlyfvJwXqLmEaDyTTv3 X-Received: by 10.68.65.79 with SMTP id v15mr8942584pbs.56.1418229005843; Wed, 10 Dec 2014 08:30:05 -0800 (PST) Received: from andrew-ThinkPad-X230 (173-164-68-213-Oregon.hfc.comcastbusiness.net. [173.164.68.213]) by mx.google.com with ESMTPSA id bu4sm4637559pdb.80.2014.12.10.08.30.05 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 10 Dec 2014 08:30:05 -0800 (PST) Date: Wed, 10 Dec 2014 08:29:55 -0800 From: Andrew Sackville-West To: Andres Freund Cc: pgsql-bugs@postgresql.org, Paulo Tanimoto Subject: Re: regression, deadlock in high frequency single-row UPDATE Message-ID: <20141210162955.GF20315@andrew-ThinkPad-X230> Mail-Followup-To: Andres Freund , pgsql-bugs@postgresql.org, Paulo Tanimoto 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> <20141209174320.GE4922@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141209174320.GE4922@alap3.anarazel.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -0.2 (/) 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 Tue, Dec 09, 2014 at 06:43:20PM +0100, Andres Freund wrote: > 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. agreed. > > 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. Thanks for this idea. I'll investigate. thanks A -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs