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

Re: pg_regress: dbname in PostgreSQL test suite

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Jorgen Austvik - Sun Norway <Jorgen(dot)Austvik(at)Sun(dot)COM>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_regress: dbname in PostgreSQL test suite
Date: 2008-05-28 14:37:08
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

Jorgen Austvik - Sun Norway wrote:
> Hi.
> pg_regress has a --dbname option (which actually take a list of 
> database names):
>   --dbname=DB               use database DB (default \"regression\")
> ... but the PostgreSQL regression test suite does not really support 
> this:
> [jaustvik(at)host:regress] ggrep -R "regression" sql/* | grep -v 
> regression_ | grep -v :--
> sql/prepare.sql:EXECUTE q2('regression');
> sql/privileges.sql:\c regression
> sql/temp.sql:\c regression
> I suggest we replace @dbname@ with the first element in the dblist 
> linked list in convert_sourcefiles_in(). What do you think?
> (I can provide a patch if you think it is an acceptable solution.)

We have more than one set of regression tests. This feature is used by 
the PL regression tests and the contrib regression tests to run using a 
different database name.

I'm not quite sure why it's a list.





In response to

pgsql-hackers by date

Next:From: Tom LaneDate: 2008-05-28 15:17:06
Subject: Re: Add dblink function to check if a named connection exists
Previous:From: Tom LaneDate: 2008-05-28 14:32:51
Subject: Re: pg_regress: dbname in PostgreSQL test suite

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