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 1r0gxB-007BUS-9j for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Nov 2023 11:42:37 +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 1r0gx9-002dyA-MD for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Nov 2023 11:42:35 +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 1r0gx8-002dxu-QZ for pgsql-hackers@lists.postgresql.org; Wed, 08 Nov 2023 11:42:35 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r0gx6-004Yao-67 for pgsql-hackers@postgresql.org; Wed, 08 Nov 2023 11:42:33 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id E567832000CC; Wed, 8 Nov 2023 06:42:29 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 08 Nov 2023 06:42:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1699443749; x= 1699530149; bh=ZBYecSgIJlbx9syMm4x4SGtB9Kqiwu0ed9IpZUfy7LA=; b=U g7pqxzMR/QRnNH29dz39PNy7IrtGTVQbuqAK9xKxX1/SHsXzW4PeoSQ12MHAT3+b aHMqmLfJJgpZFtbTOk2hVAXdrkPcxB1jv2z3/2pOHsmeWY3GvcAlwZAztgpAuY7r JLT/26Kz6dea09Vp7FGnJEOYnR9Naq5WnwFXTko2Z7ImJTbf+J1Re7i6j2ULlcNJ XXlPkGunjJ5jN2NdgpZbzY2u5Debq4XaocG1kHVFmUqA/6t7Dt6df9qdkLbOg2Xv 14SQri1CmXrI4yrRMD7gZF/24GbOrUJvM36I4fwZQN03QGbYGxBvThl90OxIysqM nxL7Lkx2TBT0V9fU3vhoQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudduledgfedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 8 Nov 2023 06:42:28 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1699443746; bh=HX/blq9fbOBk+cFVm8QZhkqFXW/OEL0IgOg42RfzCSw=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Pb7uegwCaMoSCWnyVNp+oeFz88RA01mQN95JDDX/hopf2teLiyIfH66wn8ApnNUxq sfYhZ5tuvgQaFpiWKm+mo6SquA75jSr0dScxv4L3EvS0SufV2HHR/knVp9s3fvI5a+ 55rcpu4tgD44wpnmS9GkoZPsULyy8ne1630VfhnxUYzp2V6VCueE4gYrHbSrWMYDSt XoG5k94hytMzlFLgrqxZoIMbDPBj0rj4eUxAvmt6VDTPe5ugaWBcNu9qOJsfiHi5E0 5dRTWIS9F+Yu3eZmJBYpCo/fugm395n4A6jKOS32ssXw/d7cOp0bCYwpdQoHvsVszm pd7hi89ofaqDw== Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id A5EFFC1; Wed, 8 Nov 2023 12:42:26 +0100 (CET) Date: Wed, 8 Nov 2023 12:42:26 +0100 From: Alvaro Herrera To: Peter Eisentraut Cc: Daniel Gustafsson , Tom Lane , Robert Haas , PostgreSQL Hackers Subject: Re: pgsql: Clean up role created in new subscription test. Message-ID: <202311081142.znnn3kgehvqo@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <41dba437-5622-4ae0-a6bb-726da8771584@eisentraut.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Nov-08, Peter Eisentraut wrote: > I think the earlier idea of just counting roles, tablespaces, etc. before > and after would be sufficient. Maybe record global objects in a permanent table in test_setup.sql create table global_objs as select 'role', rolname from pg_roles union all select 'tablespace', spcname from pg_tablespace; and at the end (maybe in test tablespace, though it's unrelated but it's what runs last and drops regress_tablespace), have (select 'role', rolname from pg_roles union all select 'tablespace', spcname from pg_tablespace) except select * from global_objs; and check the expected as empty. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "La verdad no siempre es bonita, pero el hambre de ella sí"