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

Re: psql \l to accept patterns

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Satoshi Nagayasu <snaga(at)uptime(dot)jp>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: psql \l to accept patterns
Date: 2013-01-30 03:44:23
Message-ID: 21973.1359517463@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Satoshi Nagayasu <snaga(at)uptime(dot)jp> writes:
> First of all, I was looking for some regression tests for
> CREATE/ALTER/DROP DATABASE commands, but I couldn't find them
> in the test/regress/sql/ directory. So, I asked the question.

> I guess these database tests are in pg_regress.c. Right?

Yeah, we don't bother with explicit tests of CREATE/DROP DATABASE
because that's inherently tested by creating/replacing the regression
database(s).  And these actions are expensive enough that I'm not
eager to add several more of them to the test sequence without darn
good reason.  I'm not sure how much of ALTER DATABASE's functionality
we're testing, though as you say pg_regress itself does some of that.
It might be reasonable to add some more tests of ALTER cases.

			regards, tom lane


In response to

pgsql-hackers by date

Next:From: Peter EisentrautDate: 2013-01-30 04:04:11
Subject: Re: passing diff options to pg_regress
Previous:From: Satoshi NagayasuDate: 2013-01-30 03:33:15
Subject: Re: psql \l to accept patterns

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