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 1nizL5-0000XZ-QS for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Apr 2022 14:05:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nizL4-0003EE-AV for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Apr 2022 14:05:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nizL4-0003E4-1J for pgsql-hackers@lists.postgresql.org; Mon, 25 Apr 2022 14:05:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nizKy-0000tb-V9 for pgsql-hackers@lists.postgresql.org; Mon, 25 Apr 2022 14:05:14 +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 23PE58BG039946; Mon, 25 Apr 2022 10:05:08 -0400 From: Tom Lane To: Alvaro Herrera cc: Amul Sul , PostgreSQL Hackers Subject: Re: tweak to a few index tests to hits ambuildempty() routine. In-reply-to: <202204251353.vgkpgcy3szt2@alvherre.pgsql> References: <202204251353.vgkpgcy3szt2@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Mon, 25 Apr 2022 15:53:10 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <39944.1650895508.1@sss.pgh.pa.us> Date: Mon, 25 Apr 2022 10:05:08 -0400 Message-ID: <39945.1650895508@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera writes: > Hmm, so 027_stream_regress.pl is not prepared to deal with any unlogged > tables that may be left in the regression database (which is what my > spgist addition did). I first tried doing a TRUNCATE of the unlogged > table, but that doesn't work either, and it turns out that the > regression database does not have any UNLOGGED relations. Maybe that's > something we need to cater for, eventually, but for now dropping the > table suffices. I have pushed that. It does seem like the onus should be on 027_stream_regress.pl to deal with that, rather than restricting what the core tests can leave behind. Maybe we could have it look for unlogged tables and drop them before making the dumps? Although I don't understand why TRUNCATE wouldn't do the job equally well. regards, tom lane