Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YcI8m-00020V-TB for pgsql-bugs@arkaria.postgresql.org; Sun, 29 Mar 2015 18:40:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YcI8l-0004KL-N7 for pgsql-bugs@arkaria.postgresql.org; Sun, 29 Mar 2015 18:40:55 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YcI8k-0004KF-Uy for pgsql-bugs@postgresql.org; Sun, 29 Mar 2015 18:40:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YcI8h-0001mW-Se for pgsql-bugs@postgresql.org; Sun, 29 Mar 2015 18:40:53 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t2TIeft9025771; Sun, 29 Mar 2015 14:40:42 -0400 From: Tom Lane To: Jon Jensen cc: Jeff Davis , pgsql-bugs@postgresql.org Subject: Re: pg_get_constraintdef() doesn't always give an equal constraint In-reply-to: References: <19820.1427153553@sss.pgh.pa.us> <14802.1427571147@sss.pgh.pa.us> Comments: In-reply-to Jon Jensen message dated "Sat, 28 Mar 2015 17:18:19 -0600" Date: Sun, 29 Mar 2015 14:40:41 -0400 Message-ID: <25770.1427654441@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Jon Jensen 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