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 1phxnv-0004fN-GV for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Mar 2023 19:19:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1phxnu-0005Yh-CW for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Mar 2023 19:19:22 +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 1phxnu-0005YY-2R for pgsql-hackers@lists.postgresql.org; Thu, 30 Mar 2023 19:19:22 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phxnr-0004iA-S2 for pgsql-hackers@postgresql.org; Thu, 30 Mar 2023 19:19:21 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id C4EAB2F843A8 for ; Thu, 30 Mar 2023 21:19:18 +0200 (CEST) Received: from s899.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id B64162E29776; Thu, 30 Mar 2023 21:19:18 +0200 (CEST) Received: from s476.loopia.se (unknown [172.22.191.5]) by s899.loopia.se (Postfix) with ESMTP id B157C2C8BA3B; Thu, 30 Mar 2023 21:19:18 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s980.loopia.se ([172.22.191.5]) by s476.loopia.se (s476.loopia.se [172.22.190.16]) (amavisd-new, port 10024) with LMTP id 8j1zYGc6XS0N; Thu, 30 Mar 2023 21:19:18 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from smtpclient.apple (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s980.loopia.se (Postfix) with ESMTPSA id 2E26122015C9; Thu, 30 Mar 2023 21:19:18 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.2\)) Subject: Re: pgsql: Clean up role created in new subscription test. From: Daniel Gustafsson In-Reply-To: <267900.1680201870@sss.pgh.pa.us> Date: Thu, 30 Mar 2023 21:19:17 +0200 Cc: Robert Haas , PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <99112997-6732-42C7-989B-06406C911FE2@yesql.se> References: <267900.1680201870@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3696.120.41.1.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 30 Mar 2023, at 20:44, Tom Lane wrote: > Maybe it'd be close enough to expect there to be no roles named > "regress_xxx". In combination with > -DENFORCE_REGRESSION_TEST_NAME_RESTRICTIONS, that would prevent us > from accidentally leaving stuff behind, and we could hope that it = doesn't > cause false failures in real installations. Would that check be always on or only when pg_regress is compiled with -DENFORCE_REGRESSION_TEST_NAME_RESTRICTIONS? > Another idea could be for pg_regress to enforce that "select count(*) > from pg_roles" gives the same answer before and after the test run. That wouldn't prevent the contents of pg_roles to have changed though, = so there is a (slim) false positive risk with that no? -- Daniel Gustafsson