Skip site navigation (1) Skip section navigation (2)

Re: pg_regress inputdir

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Jorgen Austvik - Sun Norway <Jorgen(dot)Austvik(at)Sun(dot)COM>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_regress inputdir
Date: 2008-07-31 17:13:45
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Jorgen Austvik - Sun Norway wrote:

> Do we also agree that if you set --inputdir to anything other than the  
> default, pg_regress will not work (will write a file to one folder, and  
> try to read the same file from another)?
> And if we agree above - should we make setting --inputdir work (read and  
> write from/to same directory), remove the --inputdir parameter (since  
> setting it to anything different from default value doesn't work), or  
> keep it there (to confuse people)?

I think the problem here is that you have to set --outputdir too.

$ LC_ALL=C /pgsql/build/00head/src/test/regress/pg_regress --inputdir=/pgsql/source/00head/src/test/regress --outputdir=/pgsql/build/00head/src/test/regress timetz
(using postmaster on Unix socket, port 55432)
============== dropping database "regression"         ==============
============== creating database "regression"         ==============
============== running regression test queries        ==============
test timetz               ... ok

 All 1 tests passed. 

Note that this is a VPATH build, so the input and output dirs are

Alvaro Herrera                      
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to


pgsql-hackers by date

Next:From: Hitoshi HaradaDate: 2008-07-31 17:13:52
Subject: Re: window function v03 against HEAD
Previous:From: David FetterDate: 2008-07-31 16:34:19
Subject: Re: window function v03 against HEAD

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group