New tests for new bugs (was Re: [BUGS] Re: backend dies on 7.1.1 loading large datamodel.) - Mailing list pgsql-hackers

From Peter Eisentraut
Subject New tests for new bugs (was Re: [BUGS] Re: backend dies on 7.1.1 loading large datamodel.)
Date
Msg-id Pine.LNX.4.30.0105082210570.759-100000@peter.localdomain
Whole thread Raw
Responses Re: New tests for new bugs (was Re: [BUGS] Re: backend dies on 7.1.1 loading large datamodel.)
List pgsql-hackers
Tom Lane writes:

> Thomas Lockhart <lockhart@alumni.caltech.edu> writes:
> > Will the patch include a case for the regression test? Or could someone
> > (other than me??!!) volunteer to cover that?
>
> Seems like a good idea.  As the embarrassee, I'm perhaps too close
> to the problem to write a good addition to the regress tests; any
> volunteers?

The query that showed the bug would serve just fine.

Actually, this practice should be much more widely deployed.  For each
bug, a test case should be added to guard against the bug coming back.
At least when a suitable testing infrastructure exists.  For instance,
this would probably apply to each of the backend bug fixes that came in
the last few days.

Maybe it's too cumbersome to update the regression tests?  Should the
files be split into smaller pieces?

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Outstanding patches
Next
From: Tom Lane
Date:
Subject: Re: New tests for new bugs (was Re: [BUGS] Re: backend dies on 7.1.1 loading large datamodel.)