Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZj23-0003DN-VV for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Jul 2017 19:28:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dZj23-0006sM-IG for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Jul 2017 19:28:43 +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_2) (envelope-from ) id 1dZixZ-0004qy-8W for pgsql-hackers@postgresql.org; Mon, 24 Jul 2017 19:24:05 +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_2) (envelope-from ) id 1dZixW-0000GB-P4 for pgsql-hackers@postgresql.org; Mon, 24 Jul 2017 19:24:04 +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 v6OJO18W001377; Mon, 24 Jul 2017 15:24:01 -0400 From: Tom Lane To: Thomas Munro cc: Pg Hackers Subject: Re: Buildfarm failure and dubious coding in predicate.c In-reply-to: References: <10593.1500670709@sss.pgh.pa.us> <21591.1500755559@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Tue, 25 Jul 2017 06:49:45 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1375.1500924241.1@sss.pgh.pa.us> Date: Mon, 24 Jul 2017 15:24:01 -0400 Message-ID: <1376.1500924241@sss.pgh.pa.us> 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 Thomas Munro writes: > Ahh, I think I see it. This is an EXEC_BACKEND build farm animal. > Theory: After the backend we see had removed the scratch entry and > before it had restored it, another backend started up and ran > InitPredicateLocks(), which inserted a new scratch entry without > interlocking. Ouch. Yes, I think you're probably right. It needs to skip that if IsUnderPostmaster. Seems like there ought to be an Assert(!found) there, too. And I don't think I entirely like the fact that there's no assertions about the found/not found cases below, either. Will fix, unless you're already on it? regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers