Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XzXaI-0007Im-NW for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Dec 2014 21:17:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XzXaI-0005qH-30 for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Dec 2014 21:17:10 +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 1XzXaH-0005qB-Ac for pgsql-bugs@postgresql.org; Fri, 12 Dec 2014 21:17:09 +0000 Received: from outmail149095.authsmtp.com ([62.13.149.95]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XzXaD-0007R3-4b for pgsql-bugs@postgresql.org; Fri, 12 Dec 2014 21:17:07 +0000 Received: from mail-c237.authsmtp.com (mail-c237.authsmtp.com [62.13.128.237]) by punt15.authsmtp.com (8.14.2/8.14.2/) with ESMTP id sBCLGt99056460; Fri, 12 Dec 2014 21:16:55 GMT Received: from alvin.alvh.no-ip.org (client-186-9-239-88.imovil.entelpcs.cl [186.9.239.88] (may be forged)) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/) with ESMTP id sBCLGlt4081660; Fri, 12 Dec 2014 21:16:52 GMT Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 59B5B792; Fri, 12 Dec 2014 18:16:56 -0300 (CLST) Date: Fri, 12 Dec 2014 18:16:56 -0300 From: Alvaro Herrera To: Peter Geoghegan Cc: Mark Kirkwood , Andrew Sackville-West , pgsql-bugs , Paulo Tanimoto Subject: Re: regression, deadlock in high frequency single-row UPDATE Message-ID: <20141212211656.GD1768@alvh.no-ip.org> References: <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> <548AA8F4.3020905@catalyst.net.nz> <20141212205254.GC1768@alvh.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Server-Quench: 32365e79-8244-11e4-9f74-002590a135d3 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZcSBoa BzkeAQdJTRslYBtL RB4bawxAL0wMSABN M15eIxoOcUtFHxZ1 VjUUWVRVVE1zWGl0 bQBUbktcakxQVhto U0FXSlpNEQ1vHhxP RWxtLm4uMwFGcH92 Y0YsX3BdW0E0dkR+ REsBEmQbbWVkbH0e URVcagoCdwdXfh9H b1l/BXIOZDEEKBg1 TUcAFQ0eBgAXMila WAwWNlMVRwJDEjM1 SxQFFjZnHEtNRyQ8 L1QoMFMFAUsXOVR6 KlonVlYVdgUVFUVj J21kPAIx X-Authentic-SMTP: 61633235383639.1024:706 X-AuthFastPath: 0 (Was 255) X-AuthSMTP-Origin: 186.9.239.88/587 X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Pg-Spam-Score: -2.6 (--) 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 Peter Geoghegan wrote: > On Fri, Dec 12, 2014 at 12:52 PM, Alvaro Herrera > wrote: > > Okay, I created a reproducer ... but it doesn't work. I mean, the > > commands are fine: if I execute them manually in four sessions in an > > unpatched server I get a deadlock. But isolationtester doesn't know to > > handle more than one blocked session, so it just hangs when the third > > session blocks after the second one is already blocked. :-( > > We need a stress-testing framework. I hacked together one for the ON > CONFLICT UPDATE patch (https://github.com/petergeoghegan/upsert), but > a more comprehensive effort is needed. Hm, that's nice, but I hope you realize that a framework based on shell scripts cannot possibly work for us. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, 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