Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0buu-0000bJ-5J for pgsql-bugs@arkaria.postgresql.org; Mon, 15 Dec 2014 20:06:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y0but-0004zN-Kw for pgsql-bugs@arkaria.postgresql.org; Mon, 15 Dec 2014 20:06:51 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y0bur-0004w2-Ox for pgsql-bugs@postgresql.org; Mon, 15 Dec 2014 20:06:50 +0000 Received: from mail-pd0-x22b.google.com ([2607:f8b0:400e:c02::22b]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Y0buo-0008Dq-6k for pgsql-bugs@postgresql.org; Mon, 15 Dec 2014 20:06:47 +0000 Received: by mail-pd0-f171.google.com with SMTP id y13so12365160pdi.30 for ; Mon, 15 Dec 2014 12:06:44 -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=VsrP/m/2266VDvXZFbW/+qz+qfiRm8AlDAfIjssgiRQ=; b=H5DYjHSEgEUxYCJzjG9oGrnNCksvsVRtSexEWgL++M5I/s9X+6PGLZlHndq7AJbOUP hAuuFng7ewI4OcIFyCK26wIvh4m5nyr44KnZNQ2+FuUiXgsPjS4REkfHKDUmFfPSTHrS zN01W2JCTIDzwUIB6WPcLT1Y1yrHYI40qB3zM= 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=VsrP/m/2266VDvXZFbW/+qz+qfiRm8AlDAfIjssgiRQ=; b=LJuePVBTtZerHi4CrlHlKDkCIp7pJbSxfSkXYQJtqTijYK0QNg+h6T1twxgw4z9qNC oKF+lFmnvroFuSrA3UNHbdIgGThBwMdKXCLpF9LWlv5mMPtfnP3r6foM3Cy5aTzDeVvo OVkzQ4xQbmA10v7mL9VgnZMCb0OfYElb+hC3pMkD6vB0zUFC3PSn7feTDq0/4vSr42BK viub0bj0ZA6jQDVAXYkAEYrwChVT7+WivAyR8hMH87OpiNfP9NFCWJdVPlHBQELR5WxW MSwlGGX0ST+7y9rUo2S76JbuFjIyzry3hgJK+u5C84Nk6k09KCp21ciB0hETqjKH9f9S bvfA== X-Gm-Message-State: ALoCoQn5mBTIGofrTTeJXXc9ClkBGQJ+bNEQcjuk0+bGvo8PlPeSvglPfvD+VMFzwtYgIpxYMbct X-Received: by 10.66.221.7 with SMTP id qa7mr51879398pac.0.1418674003981; Mon, 15 Dec 2014 12:06:43 -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 ug6sm10012173pbc.72.2014.12.15.12.06.42 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 15 Dec 2014 12:06:43 -0800 (PST) Date: Mon, 15 Dec 2014 12:06:40 -0800 From: Andrew Sackville-West To: Alvaro Herrera Cc: Mark Kirkwood , pgsql-bugs@postgresql.org, Paulo Tanimoto Subject: Re: regression, deadlock in high frequency single-row UPDATE Message-ID: <20141215200640.GJ5679@andrew-ThinkPad-X230> Mail-Followup-To: Alvaro Herrera , Mark Kirkwood , pgsql-bugs@postgresql.org, Paulo Tanimoto References: <20141208235552.GZ6930@andrew-ThinkPad-X230> <54868FA2.80003@catalyst.net.nz> <5487B8F2.6050806@catalyst.net.nz> <20141210193314.GZ1768@alvh.no-ip.org> <5488C197.3060900@catalyst.net.nz> <548943C7.2030507@catalyst.net.nz> <20141211130653.GG1768@alvh.no-ip.org> <20141211172256.GB20615@alvh.no-ip.org> <20141212215752.GF1768@alvh.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141212215752.GF1768@alvh.no-ip.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -2.7 (--) 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 Fri, Dec 12, 2014 at 06:57:52PM -0300, Alvaro Herrera wrote: > Alvaro Herrera wrote: > > Alvaro Herrera wrote: > > > > > I'm going to experiment with that idea and see if it leads to a > > > solution. I tried the other idea yesterday (to keep the HW tuple lock > > > we acquire in heap_lock_tuple until heap_update is done) but aside from > > > being very complicated and bug-prone, it doesn't solve the problem > > > anyway. > > > > Here's a preliminary patch. > > Here's a finished version of this patch, which I messed a bit with and > so needs some extra testing. I want to push this shortly and backpatch > to 9.4 and 9.3. I don't want to disrupt the 9.4.0 release next week, > but it'd be nice not to ship it with this bug. We have tested this patch on the latest postgresql with our actual application and it appears to work for us. We'll be happy to test a patch against the 9.3 series, using our actual application, as well when it becomes available. 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