Re: pg_regress writes into source tree - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: pg_regress writes into source tree
Date
Msg-id 20141212134508.GT1768@alvh.no-ip.org
Whole thread Raw
In response to pg_regress writes into source tree  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: pg_regress writes into source tree  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
Peter Eisentraut wrote:
> When using a vpath build pg_regress writes the processed input/*.source
> files into the *source* tree, which isn't supposed to happen.
> 
> This appears to be a thinko introduced in this patch:
> e3fc4a97bc8ee82a78605b5ffe79bd4cf3c6213b

Oh, I noticed this while doing the dummy_seclabel move to
src/test/modules and I thought it was on purpose; if I'm not
mistaken this is why we had to add the .sql file to .gitignore.

Another thing in that patch was that I had to add the sql/ directory to
the source tree, but other than that .gitignore file it was empty.
Maybe pg_regress should create the sql/ directory in the build dir if it
doesn't exist.  This is only a problem if a pg_regress suite only runs
stuff from input/, because otherwise the sql/ dir already exists in the
source.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [REVIEW] Re: Compression of full-page-writes
Next
From: Heikki Linnakangas
Date:
Subject: Streaming replication and WAL archive interactions