From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jon Jensen <jon@endpoint.com>
Cc: Jeff Davis <pgsql@j-davis.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: pg_get_constraintdef() doesn't always give an equal constraint
Date: Sun, 29 Mar 2015 14:40:41 -0400
Message-ID: <25770.1427654441@sss.pgh.pa.us> (raw)
In-Reply-To: <alpine.LFD.2.11.1503281718060.3788@ybpnyubfg6.ybpnyqbznva6>
References: <CAMp0ubcxvbnPevHz7LkTkRVDGvCgs+JTHCUn1pYMT-CK9cdJPg@mail.gmail.com>
<19820.1427153553@sss.pgh.pa.us>
<alpine.LFD.2.11.1503271629530.2426@ybpnyubfg6.ybpnyqbznva6>
<14802.1427571147@sss.pgh.pa.us>
<alpine.LFD.2.11.1503281718060.3788@ybpnyubfg6.ybpnyqbznva6>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Jon Jensen <jon@endpoint.com> writes:
> On Sat, 28 Mar 2015, Tom Lane wrote:
>> We could possibly use this approach as a one-shot test for vetting a
>> proposed patch ... but as you've got it set up, it seems like it
>> requires manual inspection of each output to see if it's OK or not,
>> which isn't all that helpful.
> Well, as part of the standard regression test suite it's comparing stored
> expected output with newly-generated output, like all the other tests. I
> must be misunderstanding what you mean because nothing manual about that,
> is there?
My point is that the expected output has to be manually checked initially
to see if it's right or not; and since it often doesn't look exactly like
the original SQL, that checking is painful and not foolproof.
It's interesting to consider something like the COPY_PARSE_PLAN_TREES
#define, which inserts code into the backend to see whether copyfuncs.c
and equalfuncs.c are sane or not. Running the regression tests with
that turned on provides pretty thorough coverage of those modules.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, jon@endpoint.com, pgsql@j-davis.com
Subject: Re: pg_get_constraintdef() doesn't always give an equal constraint
In-Reply-To: <25770.1427654441@sss.pgh.pa.us>
References: <CAMp0ubcxvbnPevHz7LkTkRVDGvCgs+JTHCUn1pYMT-CK9cdJPg@mail.gmail.com> <19820.1427153553@sss.pgh.pa.us> <alpine.LFD.2.11.1503271629530.2426@ybpnyubfg6.ybpnyqbznva6> <14802.1427571147@sss.pgh.pa.us> <alpine.LFD.2.11.1503281718060.3788@ybpnyubfg6.ybpnyqbznva6> <25770.1427654441@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox