From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, Ian Barwick <ian(at)2ndquadrant(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Testing DDL deparsing support |
Date: | 2014-12-07 03:43:46 |
Message-ID: | 20141207034346.GA3487@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Dec 2, 2014 at 03:13:07PM -0300, Alvaro Herrera wrote:
> Robert Haas wrote:
> > On Thu, Nov 27, 2014 at 11:43 PM, Ian Barwick <ian(at)2ndquadrant(dot)com> wrote:
>
> > > A simple schedule to demonstrate this is available; execute from the
> > > src/test/regress/ directory like this:
> > >
> > > ./pg_regress \
> > > --temp-install=./tmp_check \
> > > --top-builddir=../../.. \
> > > --dlpath=. \
> > > --schedule=./schedule_ddl_deparse_demo
> >
> > I haven't read the code, but this concept seems good to me.
>
> Excellent, thanks.
>
> > It has the unfortunate weakness that a difference could exist during
> > the *middle* of the regression test run that is gone by the *end* of
> > the run, but our existing pg_upgrade testing has the same weakness, so
> > I guess we can view this as one more reason not to be too aggressive
> > about having regression tests drop the unshared objects they create.
>
> Agreed. Not dropping objects also helps test pg_dump itself; the normal
> procedure there is run the regression tests, then pg_dump the regression
> database. Objects that are dropped never exercise their corresponding
> pg_dump support code, which I think is a bad thing. I think we should
> institute a policy that regression tests must keep the objects they
> create; maybe not all of them, but at least a sample large enough to
> cover all interesting possibilities.
This causes creation DDL is checked if it is used in the regression
database, but what about ALTER and DROP? pg_dump doesn't issue those,
except in special cases like inheritance.
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ Everyone has their own god. +
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2014-12-07 09:42:52 | Re: Removing INNER JOINs |
Previous Message | Tomas Vondra | 2014-12-07 03:08:28 | PATCH: hashjoin - gracefully increasing NTUP_PER_BUCKET instead of batching |