Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wqjyo-0007L2-HY for pgsql-hackers@arkaria.postgresql.org; Sat, 31 May 2014 14:09:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wqjyn-0007Hr-W5 for pgsql-hackers@arkaria.postgresql.org; Sat, 31 May 2014 14:09:50 +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 1Wqjym-0007HE-75 for pgsql-hackers@postgresql.org; Sat, 31 May 2014 14:09:48 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wqjyi-0004yM-PG for pgsql-hackers@postgresql.org; Sat, 31 May 2014 14:09:46 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id 47884500001; Sat, 31 May 2014 16:09:41 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-6.1 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p5DDC6992.dip0.t-ipconnect.de [93.220.105.146]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 7517B500002; Sat, 31 May 2014 16:09:37 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id 9056F100326; Sat, 31 May 2014 16:09:36 +0200 (CEST) Date: Sat, 31 May 2014 16:09:36 +0200 From: Andres Freund To: Bruce Momjian Cc: Craig Ringer , PostgreSQL Hackers Subject: Re: FOR [SHARE|UPDATE] NOWAIT may still block in EvalPlanQualFetch Message-ID: <20140531140936.GC4286@awork2.anarazel.de> References: <51FB6703.9090801@2ndquadrant.com> <20140131212808.GR19957@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140131212808.GR19957@momjian.us> 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 Hi, On 2014-01-31 16:28:08 -0500, 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. Craig: I think you should add this to the next CF. Seems like something we should fix, but which isn't super urgent. But when the skip locked stuff comes in it'll be more relevant. Might also need a rebase. Greetings, Andres Freund -- Andres Freund 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