Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WAD47-0005mV-6Q for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Feb 2014 06:31:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WAD46-0002R4-Hg for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Feb 2014 06:31:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WAD45-0002Qv-EX for pgsql-hackers@postgresql.org; Mon, 03 Feb 2014 06:31:29 +0000 Received: from outmail149055.authsmtp.co.uk ([62.13.149.55]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WAD41-00087i-Vp for pgsql-hackers@postgresql.org; Mon, 03 Feb 2014 06:31:27 +0000 Received: from mail-c235.authsmtp.com (mail-c235.authsmtp.com [62.13.128.235]) by punt17.authsmtp.com (8.14.2/8.14.2/) with ESMTP id s136VMsp017495; Mon, 3 Feb 2014 06:31:22 GMT Received: from ayaki.localdomain (124-148-119-159.dyn.iinet.net.au [124.148.119.159]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/) with ESMTP id s136VC0s043396 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 3 Feb 2014 06:31:19 GMT Message-ID: <52EF37AF.10308@2ndquadrant.com> Date: Mon, 03 Feb 2014 14:31:11 +0800 From: Craig Ringer Organization: 2nd Quadrant User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Bruce Momjian CC: PostgreSQL Hackers Subject: Re: FOR [SHARE|UPDATE] NOWAIT may still block in EvalPlanQualFetch References: <51FB6703.9090801@2ndquadrant.com> <20140131212808.GR19957@momjian.us> In-Reply-To: <20140131212808.GR19957@momjian.us> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Server-Quench: cb618555-8c9c-11e3-b802-002590a15da7 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZeVg0b BQteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksadBtFaAZba1xT HGQLWlBEUFt7WmJ/ aQofbAdZfEtKVxtr UUFXQ1dbCwdtAxke B1BdUxp0EXZGO350 ZkVrWD5dXkd9OxUv RE9cEGgDeG8zYTMC UUENdB4GeANIYx9F aFV2VCIMZDFWYTQC El17DBAYFhZyEh9g Ci8qFxohemYiJBMo eiguNAkCKAUjYBoa DiBuL1cNVF0NM0E2 eVElXlkbex4UQiBA FkV1BCZfHkQIQwQm EQhaNQAA X-Authentic-SMTP: 61633235383639.1023:706 X-AuthFastPath: 0 (Was 255) X-AuthSMTP-Origin: 124.148.119.159/2525 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-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 02/01/2014 05:28 AM, Bruce Momjian wrote: > On Fri, Aug 2, 2013 at 04:00:03PM +0800, Craig Ringer wrote: >> FOR SHARE|UPDATE NOWAIT will still block if they have to follow a ctid >> chain because the call to EvalPlanQualFetch doesn't take a param for >> noWait, so it doesn't know not to block if the updated row can't be locked. >> >> The attached patch against master includes an isolationtester spec to >> demonstrate this issue and a proposed fix. Builds with the fix applied >> pass "make check" and isolationtester "make installcheck". >> >> To reach this point you need to apply the patch in >> http://www.postgresql.org/message-id/51FB4305.3070600@2ndquadrant.com >> first, otherwise you'll get stuck there and won't touch the code changed >> in this patch. > > The above looks like a legitimate patch that was not applied: > > http://www.postgresql.org/message-id/51FB6703.9090801@2ndquadrant.com > > The patch mentioned in the text above was applied, I think. The first patch, linked to in text, was commited as 706f9dd914c64a41e06b5fbfd62d6d6dab43eeb8. I can't see the second in the history either. It'd be good to get it committed, though the issue is obviously not causing any great outcry. It was detected when testing a high-rate queueing system in PostgreSQL. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers