Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r0hSf-007F00-Sy for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Nov 2023 12:15:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1r0hSe-002sex-Js for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Nov 2023 12:15:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r0hSe-002sem-A2 for pgsql-hackers@lists.postgresql.org; Wed, 08 Nov 2023 12:15:08 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r0hSa-004YoL-Lb for pgsql-hackers@postgresql.org; Wed, 08 Nov 2023 12:15:07 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 1BC0D2FBBE01 for ; Wed, 8 Nov 2023 13:15:01 +0100 (CET) Received: from s934.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 0BBE32E275E6; Wed, 8 Nov 2023 13:15:01 +0100 (CET) Received: from s471.loopia.se (unknown [172.22.191.6]) by s934.loopia.se (Postfix) with ESMTP id 094567CEAC2; Wed, 8 Nov 2023 13:15:01 +0100 (CET) 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 s471.loopia.se (s471.loopia.se [172.22.190.35]) (amavisd-new, port 10024) with UTF8LMTP id UT12k8PpSr5B; Wed, 8 Nov 2023 13:15:00 +0100 (CET) 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 97460220164C; Wed, 8 Nov 2023 13:15:00 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.3\)) Subject: Re: pgsql: Clean up role created in new subscription test. From: Daniel Gustafsson In-Reply-To: <41dba437-5622-4ae0-a6bb-726da8771584@eisentraut.org> Date: Wed, 8 Nov 2023 13:15:00 +0100 Cc: Tom Lane , Robert Haas , PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <5A9E99CC-4F05-47AC-8369-AD2E41A1D6E6@yesql.se> References: <267900.1680201870@sss.pgh.pa.us> <99112997-6732-42C7-989B-06406C911FE2@yesql.se> <284965.1680208176@sss.pgh.pa.us> <0134C9EC-5F6B-4EAC-B2D5-BB4249BEBD4D@yesql.se> <3C83CEE2-0758-400C-979C-FD9E828C4709@yesql.se> <4447BBC5-26DA-4BDB-838B-50819E8E6EA7@yesql.se> <41dba437-5622-4ae0-a6bb-726da8771584@eisentraut.org> To: Peter Eisentraut X-Mailer: Apple Mail (2.3696.120.41.1.3) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 8 Nov 2023, at 08:55, Peter Eisentraut = wrote: >=20 > On 06.07.23 00:00, Daniel Gustafsson wrote: >>> On 16 May 2023, at 11:17, Daniel Gustafsson wrote: >>> Parked in the July CF for now. >> Rebased to fix a trivial conflict highlighted by the CFBot. >=20 > I think the problem with this approach is that one would need to = reapply it to each regression test suite separately. For example, there = are several tests under contrib/ that create roles. These would not be = covered by this automatically. >=20 > I think the earlier idea of just counting roles, tablespaces, etc. = before and after would be sufficient. It's been a while but if memory serves me right, one of the reasons for = this approach was that pg_regress didn't use libpq so running queries and = storing results for comparisons other than diffing .out files was painful at = best. Since 66d6086cbc pg_regress does have a dependency on libpq so we can = now perform that bookkeeping a bit easier. I still find it more elegant to = at least compare the contents and not just the count, but I can take a stab = at a revised patch since this approach doesn't seem to appeal to the thread. -- Daniel Gustafsson