Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hg8CE-0003qm-Ni for pgsql-committers@arkaria.postgresql.org; Wed, 26 Jun 2019 13:42:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hg8CD-0001Sj-Ee for pgsql-committers@arkaria.postgresql.org; Wed, 26 Jun 2019 13:42:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hg8CD-0001QQ-72 for pgsql-committers@lists.postgresql.org; Wed, 26 Jun 2019 13:42:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hg8C6-000810-ED for pgsql-committers@lists.postgresql.org; Wed, 26 Jun 2019 13:42:44 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x5QDgaDX026229; Wed, 26 Jun 2019 09:42:36 -0400 From: Tom Lane To: Michael Paquier cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Drop test user when done with it. In-reply-to: <20190626042117.GK1714@paquier.xyz> References: <20190626042117.GK1714@paquier.xyz> Comments: In-reply-to Michael Paquier message dated "Wed, 26 Jun 2019 13:21:17 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26227.1561556556.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 26 Jun 2019 09:42:36 -0400 Message-ID: <26228.1561556556@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Michael Paquier writes: > On Mon, Jun 24, 2019 at 04:37:13PM +0000, Tom Lane wrote: >> Commit d7f8d26d9 added a test case that created a user, but forgot >> to drop it again. This is no good; for one thing, it causes repeated >> "make installcheck" runs to fail. > If we are on that, we still have src/test/modules/test_pg_dump/ which > is not repeatable with multiple installchecks: > https://www.postgresql.org/message-id/20181130163728.GE3415@tamriel.snow= man.net OK, hadn't run into that personally, but let's fix that too. Anything that can be run with "installcheck" has to satisfy the restrictions of being re-runnable and careful about what global names it uses. regards, tom lane