Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aaSFT-0002VO-Po for pgsql-committers@arkaria.postgresql.org; Mon, 29 Feb 2016 18:08:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aaSFT-0005rb-Ac for pgsql-committers@arkaria.postgresql.org; Mon, 29 Feb 2016 18:08:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aaSFS-0005qU-Nt for pgsql-committers@postgresql.org; Mon, 29 Feb 2016 18:08:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aaSFQ-0003yN-9Q for pgsql-committers@postgresql.org; Mon, 29 Feb 2016 18:08:45 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u1TI8glF017575; Mon, 29 Feb 2016 13:08:42 -0500 From: Tom Lane To: Alvaro Herrera cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Add isolationtester spec for old heapam.c bug In-reply-to: <20160229174405.GA282394@alvherre.pgsql> References: <20160229174405.GA282394@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Mon, 29 Feb 2016 14:44:06 -0300" Date: Mon, 29 Feb 2016 13:08:42 -0500 Message-ID: <17574.1456769322@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Alvaro Herrera writes: > Tom Lane wrote: >> guaibasaurus is not a particularly slow machine, and it's not using any >> special build flags AFAICT. So I'm not sure what to make of this case, >> except that it proves the timing problem can manifest on normal builds. > Hmm, I suppose I could fix this by using three different advisory locks > rather than a single one. (My assumption is that the timing dependency > is the order in which the backends are awakened when the advisory lock > is released.) I would release the locks one by one rather than all > together. Sounds plausible. You would probably need several seconds' pg_sleep() in between the lock releases to ensure that even on slow/overloaded machines, there's enough time for all wakened backends to do what they're supposed to do. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers