pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Revert "Remove reset of testtablespace from pg_regress on Window
Date: Fri, 10 Jul 2020 08:19:57 +0000
Message-ID: <E1jtoGD-0003Vj-Jl@gemulon.postgresql.org> (raw)

Revert "Remove reset of testtablespace from pg_regress on Windows"

This reverts commit 2b2a070, that moved the reset of path
"testtablespace" used by the regression tests as a path for tablespaces
(via --outputdir) from pg_regress to the MSVC script vcregress.pl, as
this broke the behavior added by ce5d342 to be able to safely run the
regression test suite with an administrative Windows account using a
restricted token.

Note that before 2b2a070, the code doing the reset in pg_regress.c
included a comment telling that we had better move that out to a
different place, leading to the mistake done in 2b2a070.  Fix this
comment, and document instead that we had better never remove this code,
for the sake of not breaking again the behavior we expect on Windows.

Thanks to Thomas Munro and Andrew Dunstan for the discussion.

Discussion: https://postgr.es/m/6d9eee97-54c8-e14a-48f7-3194e712f54f@2ndQuadrant.com
Discussion: https://postgr.es/m/CA+hUKGLiieEzfrdWxWFE+_wnXho_F5Smx972X1wEubhS7v1q9g@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/61be85afabba0cd85bb1bcaacbea8efa8641f564

Modified Files
--------------
src/test/regress/pg_regress.c | 19 +++++++++++++++++++
src/tools/msvc/vcregress.pl   | 17 ++---------------
2 files changed, 21 insertions(+), 15 deletions(-)



Message-ID: <E1jtoGD-0003Vj-Jl@gemulon.postgresql.org>
Permalink:  ../E1jtoGD-0003Vj-Jl@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jtoGD-0003Vj-Jl@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: michael@paquier.xyz
  Subject: Re: pgsql: Revert "Remove reset of testtablespace from pg_regress on Window
  In-Reply-To: <E1jtoGD-0003Vj-Jl@gemulon.postgresql.org>
  References: <E1jtoGD-0003Vj-Jl@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