pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make pg_regress.c unset PGDATABASE during make installcheck.
Date: Fri, 27 Sep 2019 22:19:41 +0000
Message-ID: <E1iDyaT-0007nJ-CD@gemulon.postgresql.org> (raw)

Make pg_regress.c unset PGDATABASE during make installcheck.

For the most part, we leave libpq-controlling environment variables
alone during "make installcheck", reasoning that connecting to the
server the user expects us to connect to may depend on those variables.
But that argument doesn't apply to PGDATABASE, since we always want
to connect to a specific database name within the server.  And failing
to unset it causes certain ECPG tests to fail, as various people have
complained of in the past.  So let's unset it.

Possibly this should be back-patched, but I'm disinclined to do that
right before 12.0 release.  Maybe later.

Discussion: https://postgr.es/m/20180318205548.2akxjqvo7hrk5wbc@alap3.anarazel.de
Discussion: https://postgr.es/m/E1bOum4-0002EA-2y@gemulon.postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5ee96b3e2221d154ffcb719bd2dee1179c53f821

Modified Files
--------------
src/test/regress/pg_regress.c | 8 ++++++++
1 file changed, 8 insertions(+)



Message-ID: <E1iDyaT-0007nJ-CD@gemulon.postgresql.org>
Permalink:  ../E1iDyaT-0007nJ-CD@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iDyaT-0007nJ-CD@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Make pg_regress.c unset PGDATABASE during make installcheck.
  In-Reply-To: <E1iDyaT-0007nJ-CD@gemulon.postgresql.org>
  References: <E1iDyaT-0007nJ-CD@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox