From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Re: [COMMITTERS] pgsql: Implement multivariate n-distinct coefficients
Date: Fri, 24 Mar 2017 15:43:30 -0400
Message-ID: <9095.1490384610@sss.pgh.pa.us> (raw)
In-Reply-To: <20170324192118.7cvlqhfx6p5ecdnd@alvherre.pgsql>
References: <20170324192118.7cvlqhfx6p5ecdnd@alvherre.pgsql>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Tom Lane wrote:
>> Why not use COSTS OFF? Or I'll put that even more strongly: all the
>> existing regression tests use COSTS OFF, exactly to avoid this sort of
>> machine-dependent output. There had better be a really damn good
>> reason not to use it here.
> If we use COSTS OFF, the test is completely pointless, as the plans look
> identical regardless of whether the multivariate stats are being used or
> not.
Well, I think you are going to find that the exact costs are far too
fragile to have in the regression test output. Just because you wish
you could test them this way doesn't mean you can.
> If we had a ROWS option to ANALYZE that showed estimated number of rows
> but not the cost, that would be an option.
Unlikely to be any better. All these numbers are subject to lots of
noise, eg due to auto-analyze happening at unexpected times, random
sampling during analyze, etc. If you try to constrain the test case
enough that none of that happens, I wonder how useful it will really be.
What I would suggest is devising a test case whereby you actually
get a different plan shape now than you did before. That shouldn't
be too terribly hard, or else what was the point?
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, robertmhaas@gmail.com, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Implement multivariate n-distinct coefficients
In-Reply-To: <9095.1490384610@sss.pgh.pa.us>
References: <20170324192118.7cvlqhfx6p5ecdnd@alvherre.pgsql> <9095.1490384610@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