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 1mb8RX-0007P9-Uq for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Oct 2021 21:39:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mb8RV-0002ze-Tj for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Oct 2021 21:39:13 +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 1mb8RV-0002zV-LE for pgsql-hackers@lists.postgresql.org; Thu, 14 Oct 2021 21:39:13 +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 1mb8RP-0007Uc-GD for pgsql-hackers@postgresql.org; Thu, 14 Oct 2021 21:39:12 +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 19ELd2wC904978; Thu, 14 Oct 2021 17:39:02 -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: <2306C399-4919-4694-9A0E-72CB5EE1D0B8@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> <903680.1634246015@sss.pgh.pa.us> <2306C399-4919-4694-9A0E-72CB5EE1D0B8@enterprisedb.com> Comments: In-reply-to Mark Dilger message dated "Thu, 14 Oct 2021 14:18:01 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <904976.1634247542.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 14 Oct 2021 17:39:02 -0400 Message-ID: <904977.1634247542@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Mark Dilger writes: >> On Oct 14, 2021, at 2:13 PM, Tom Lane wrote: >> (b) Wouldn't finish()ing that connection cause the temp tables to be >> dropped, negating the entire point of the test? > The finish() would have to be the last line of the test. > ... > I'm curious if the test is indicating something about the underlying tes= t system. Only one other test in the tree uses background_psql(). I was = hoping Andrew would have something to say about whether this is a bug with= that function or just user error on my part. Neither of these things could explain the problem at hand, AFAICS, because it's failing to start up the standby. regards, tom lane