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 1r0hjo-007Go4-8e for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Nov 2023 12:32:52 +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 1r0hjm-003CeT-T7 for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Nov 2023 12:32:50 +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 1r0hjl-003CeB-Qg for pgsql-hackers@lists.postgresql.org; Wed, 08 Nov 2023 12:32:50 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r0hji-004YyD-Hq for pgsql-hackers@postgresql.org; Wed, 08 Nov 2023 12:32:48 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.nyi.internal (Postfix) with ESMTP id 9AE105C00C9; Wed, 8 Nov 2023 07:32:44 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 08 Nov 2023 07:32:44 -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=1699446764; x= 1699533164; bh=StBDLKqvzji/RxJhKltu8hQ9nmpiMP5Ik0wmY+bGxPU=; b=S Kvl08gCIRytOF3oFM92DSyONnUPjwPXL2QlbYjnQK+V/E5F8ZQUac+Y3S1OJQ9vi BA1tOGlajlnpEzLXexBONVfCB1xTpznf+6t5Nye9j/gEYWCTIMyc/HwV29qVSinV pnK78RCCSekUvdeXBggShfZUhgS7V7xIRU3KiMimGzo6cSQ01lRfMT8YZxZO4FX0 0kv4tjCFxo1x0k5e25KI5XeCR/UBgjO/yRO2J22CS5aJKTfHU9oeg3ByU199Rwj3 IlcfXCGoAo5AwV1IKO8HSK1M75OhhDRAsKGtAJJ2PngDSBYYn2gckgV+m6Yt6W9f xrrS4gUhaZC1V/kyGdc9w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudduledgfeelucetufdoteggodetrfdotf 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 07:32:44 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1699446761; bh=ISaQgoJyHvBCH4wFlr+lpNqCSgYlTzhnAcHa8T+Y8Pg=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=PXJkcpMZNW2PmnVTMbi537FWBDbvQJZxAQiYm/2QWU4Ppu8cZb+l2TunFyKYzlrIf iJ09Li5Oxdhks0CWabtZBpwh1zpT7saIw3NBAnKwHHIkrzvFvutM71asEar/qd8H5M 9QpqRvcuTMowdJFqJxu6jvz9wcoWmjOn0qj0c+e0UGM1OhMt0gysLnxv3oLlo6PH/h wOUZKiswwzeEqTpH27MVKFqoA22OQGkvPMH9hx5YUWzfdMCLfrFudn0L71J8pqaZJP ZhLzvPvB5gxRPieDZM6xK0aRqTpSofpGLyV+52bymAaX9wSBUHUA76uk+4mfA/AP7Q a9GrVgYXMwK6w== Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id E7B75C1; Wed, 8 Nov 2023 13:32:41 +0100 (CET) Date: Wed, 8 Nov 2023 13:32:41 +0100 From: Alvaro Herrera To: Daniel Gustafsson Cc: Peter Eisentraut , Tom Lane , Robert Haas , PostgreSQL Hackers Subject: Re: pgsql: Clean up role created in new subscription test. Message-ID: <202311081232.rn3aho5ay6yx@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3B08E3F2-37C8-4D26-BA80-C4C0F4DF3848@yesql.se> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Nov-08, Daniel Gustafsson wrote: > Since test_setup.sql is part of the regress schedule and not pg_regress we > would have to implement this for each test run (regress, contribs etc), which > is what Peter didn't like about the original suggestion. Oh, somehow that aspect of his reply failed to register with me. I agree with your approach of using libpq in pg_regress then. I suppose you're just thinking of using PQexec() or whatever, run one query with sufficient ORDER BY, save the result, and at the end of the test run just run the same query and compare that they are cell-by-cell identical? This sounds a lot simpler than the patch you posted. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/