pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim Nasby <Jim.Nasby@BlueTreble.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Subject: Re: Very confusing installcheck behavior with PGXS
Date: Thu, 7 Jan 2016 11:59:17 -0600
Message-ID: <568EA775.2080509@BlueTreble.com> (raw)
In-Reply-To: <11232.1452188946@sss.pgh.pa.us>
References: <56899F36.9000607@BlueTreble.com>
	<CA+TgmoaKJFjY-=A6x3Qhk2Sf7egQG3=FdSUdzTCQtogYbBGyCQ@mail.gmail.com>
	<5651.1452102882@sss.pgh.pa.us>
	<568E7829.2050805@BlueTreble.com>
	<12108.1452178021@sss.pgh.pa.us>
	<568E7B4A.4080003@BlueTreble.com>
	<13036.1452179541@sss.pgh.pa.us>
	<568E8317.3000806@BlueTreble.com>
	<29567.1452182165@sss.pgh.pa.us>
	<568EA3A6.7080309@BlueTreble.com>
	<11232.1452188946@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 1/7/16 11:49 AM, Tom Lane wrote:
> Jim Nasby <Jim.Nasby@bluetreble.com> writes:
>> input and output are used in only 3 places in the whole tree[1], so
>> maybe the best thing to do is just rip support for that out of
>> pg_regress and handle it some other way.
>
> [ raised eyebrow ]  It's not apparent to me that moving it someplace else
> would reduce the net cruft any.

What it would do is de-mystify that part of pg_regress. I agree that 
vpath is a particular problem for input/ and output/, but it's even 
worse when most everyone thinks sql/ and expected/ are inputs to 
pg_regress, and not potential outputs.

> The real problem is that Peter just did the minimum amount of work
> to get VPATH to work at all, not to get it to work in a non-surprising
> way.  We really need this code to be explicitly VPATH-aware, I think,
> rather than overloading the inputdir and outputdir concepts in
> multiple ways.

Agreed, especially because if it's not then if you try to use both 
input/ and sql/ or output/ and expected/ you're not going to get the 
results you'd like.

If we want to keep input/ and output/ inside pg_regress then I think 
what needs to happen in a vpath build is to first create $vpath/sql and 
$vpath/expected, copy anything from $(uh... source?)/sql and /expected 
there, and then process /input and /output (and deal with any duplicate 
file references).
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (18+ messages)  latest in thread

Message-ID: <568EA775.2080509@BlueTreble.com>
Permalink:  ../568EA775.2080509@BlueTreble.com/
Also on:    postgresql.org/message-id/568EA775.2080509@BlueTreble.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: Jim.Nasby@BlueTreble.com, tgl@sss.pgh.pa.us, peter_e@gmx.net, robertmhaas@gmail.com
  Subject: Re: Very confusing installcheck behavior with PGXS
  In-Reply-To: <568EA775.2080509@BlueTreble.com>

* 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