Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnVvU-0000TH-SA for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Mar 2017 19:46:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cnVvU-0002Jm-F5 for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Mar 2017 19:46:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cnVu0-0007Ft-5i for pgsql-hackers@postgreSQL.org; Mon, 13 Mar 2017 19:45:08 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cnVtw-0008CW-Oz for pgsql-hackers@postgreSQL.org; Mon, 13 Mar 2017 19:45:07 +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 v2DJj1DU030356; Mon, 13 Mar 2017 15:45:01 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@postgreSQL.org Subject: Re: [COMMITTERS] pgsql: Add amcheck extension to contrib. In-reply-to: References: Comments: In-reply-to Andres Freund message dated "Fri, 10 Mar 2017 00:40:56 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30353.1489434301.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 13 Mar 2017 15:45:01 -0400 Message-ID: <30354.1489434301@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) 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 Andres Freund writes: > Add amcheck extension to contrib. axolotl just failed on this: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Daxolotl&dt=3D2017= -03-13%2017%3A49%3A24 *************** *** 78,86 **** =20=20 -- make sure we don't have any leftover locks SELECT * FROM pg_locks WHERE relation IN ('bttest_a_idx'::regclass, 'btte= st_b_idx'::regclass); ! locktype | database | relation | page | tuple | virtualxid | transaction= id | classid | objid | objsubid | virtualtransaction | pid | mode | granted= | fastpath=20 ! ----------+----------+----------+------+-------+------------+------------= ---+---------+-------+----------+--------------------+-----+------+--------= -+---------- ! (0 rows) =20=20 COMMIT; -- cleanup --- 78,87 ---- =20=20 -- make sure we don't have any leftover locks SELECT * FROM pg_locks WHERE relation IN ('bttest_a_idx'::regclass, 'btte= st_b_idx'::regclass); ! locktype | database | relation | page | tuple | virtualxid | transaction= id | classid | objid | objsubid | virtualtransaction | pid | mode = | granted | fastpath=20 ! ----------+----------+----------+------+-------+------------+------------= ---+---------+-------+----------+--------------------+-------+-------------= ----+---------+---------- ! relation | 57562 | 57573 | | | | = | | | | 4/29 | 20342 | AccessShareL= ock | t | t ! (1 row) =20=20 COMMIT; -- cleanup I could be wrong, but the most obvious explanation for this failure is that autovacuum had a lock on the table or index when we looked. Even if that isn't why axolotl failed in this particular case, I think it's dead certain that we will see such failures from time to time if this test script isn't tightened up. IIUC what the test is trying to look for, I think adding "AND pid =3D pg_backend_pid()" to this query would be an appropriate fix. regards, tom lane --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers