Re: Testing DDL deparsing support

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: 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-05 18:58:20
Message-ID: 20141205185820.GB30624@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Dec 5, 2014 at 09:29:59AM -0300, Alvaro Herrera wrote:
> Bruce Momjian wrote:
> > On Fri, Nov 28, 2014 at 01:43:36PM +0900, Ian Barwick wrote:
> > > Standard regression tests are helpful because patch authors include new test
> > > cases in the patches that stress their new options or commands. This new test
> > > framework needs to be something that internally runs the regression tests and
> > > exercises DDL deparsing as the regression tests execute DDL. That would mean
> > > that new commands and options would automatically be deparse-tested by our new
> > > framework as soon as patch authors add standard regress support.
> >
> > Are you saying every time a new option is added to a command that a new
> > regression test needs to be added?
>
> Not necessarily -- an existing test could be modified, as well.
>
> > We don't normally do that,
>
> I sure hope we do have all options covered by tests.

Are you saying that every combination of ALTER options is tested? We
have rejected simple regression test additions on the basis that the
syntax works and is unlikely to break once tested once by the developer.

> > and it could easily bloat the regression tests over time.
>
> We had 103 regression tests in 8.2 and we have 145 in 9.4. Does this
> qualify as bloat?

No, that seems fine. I am worried about having to have a test for every
syntax change, which we currently don't do? Was that issue not clear in
my first email?

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ Everyone has their own god. +

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2014-12-05 19:10:12 Re: Testing DDL deparsing support
Previous Message Jim Nasby 2014-12-05 18:57:34 Re: Parallel Seq Scan