Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mb82t-0006Oh-6H for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Oct 2021 21:13:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mb82s-0003xt-0L for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Oct 2021 21:13:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mb82r-0003xk-J2 for pgsql-hackers@lists.postgresql.org; Thu, 14 Oct 2021 21:13:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mb82l-0007Ib-Hp for pgsql-hackers@postgresql.org; Thu, 14 Oct 2021 21:13:44 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 19ELDZkQ903681; Thu, 14 Oct 2021 17:13:35 -0400 From: Tom Lane To: Mark Dilger cc: Andrew Dunstan , Peter Geoghegan , Robert Haas , Pavel Borisov , Alexander Lakhin , PostgreSQL-development Subject: Re: BUG #17212: pg_amcheck fails on checking temporary relations In-reply-to: <02C6345B-D186-4F88-A976-A2CD1051CB93@enterprisedb.com> References: <17212-34dd4a1d6bba98bf@postgresql.org> <543F3BF3-EDED-4C52-AF05-623921B6C409@enterprisedb.com> <55A2BFE7-AAAF-4A64-BD3A-5C98EA982267@enterprisedb.com> <07159C9A-40DA-47BF-B2F4-! 203F5AC00890@enterprisedb.com> <40DB088B-C96F-49B2-BC84-BDC8D35C7E97@enterprisedb.com> <0B7DA7A4-2872-485B-BFDD-BF8E9BB07B26@enterprisedb.com> <726473.1634184950@sss.pgh.pa.us> <02C6345B-D186-4F! 88-A976-A2CD1051CB93@enterprisedb.com> Comments: In-reply-to Mark Dilger message dated "Thu, 14 Oct 2021 14:06:00 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <903679.1634246015.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 14 Oct 2021 17:13:35 -0400 Message-ID: <903680.1634246015@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Mark Dilger writes: > The pg_amcheck patch Peter committed for me adds a new test, src/bin/pg_= amcheck/t/006_bad_targets.pl, which creates two PostgresNode objects (a pr= imary and a standby) and uses PostgresNode::background_psql(). It doesn't= bother to "finish" the returned harness, which may be the cause of an ins= tallation hanging around long enough to be in the way when another test tr= ies to start. (a) Isn't that just holding open one connection, not the whole instance? (b) Wouldn't finish()ing that connection cause the temp tables to be dropped, negating the entire point of the test? TBH, I seriously doubt this test case is worth expending buildfarm cycles on forevermore. I'm more than a bit tempted to just drop it, rather than also expending developer time figuring out why it's not as portable as it looks. regards, tom lane