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 1hg9GF-0006V4-FM for pgsql-committers@arkaria.postgresql.org; Wed, 26 Jun 2019 14:50:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hg9GC-0002sz-KG for pgsql-committers@arkaria.postgresql.org; Wed, 26 Jun 2019 14:50:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hg9GC-0002ss-A1 for pgsql-committers@lists.postgresql.org; Wed, 26 Jun 2019 14:50:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hg9G9-0002Pq-Ru for pgsql-committers@lists.postgresql.org; Wed, 26 Jun 2019 14:50:55 +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 x5QEoqhO031293; Wed, 26 Jun 2019 10:50:52 -0400 From: Tom Lane To: Michael Paquier cc: pgsql-committers@lists.postgresql.org, Stephen Frost Subject: Re: pgsql: Drop test user when done with it. In-reply-to: <26228.1561556556@sss.pgh.pa.us> References: <20190626042117.GK1714@paquier.xyz> <26228.1561556556@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 26 Jun 2019 09:42:36 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31291.1561560652.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 26 Jun 2019 10:50:52 -0400 Message-ID: <31292.1561560652@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I wrote: > Michael Paquier writes: >> 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.sno= wman.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. Actually, now that I re-read that thread, maybe what we need to do is mark test_pg_dump as something not to be run by "make installcheck"? I'm not quite sure what *does* run it, but the context is evidently that it's supposed to be run by some overarching script that's then going to run pg_dump on the ending database state. So it's not meant to be run against a generic pre-existing installation, and it doesn't have to follow the rules for being safe for that --- but then we need to be sure that it doesn't get called that way if someone does "make installcheck" in a parent directory. regards, tom lane