pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tomas Vondra <tomas.vondra@enterprisedb.com>
Cc: David Geier <geidav.pg@gmail.com>
Cc: Richard Guo <guofenglinux@gmail.com>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Optimize join selectivity estimation by not reading MCV stats for unique join attributes
Date: Fri, 18 Nov 2022 09:45:44 -0500
Message-ID: <2185327.1668782744@sss.pgh.pa.us> (raw)
In-Reply-To: <53950f93-8cce-4440-52f1-5879653c6803@enterprisedb.com>
References: <b9846ca0-5f1c-9b26-5881-aad3f42b07f0@gmail.com>
	<522124.1668179795@sss.pgh.pa.us>
	<16acb727-24e8-6453-1711-aae339802966@gmail.com>
	<2f30ba9c-b707-55ae-0afd-68eb6a8a7708@enterprisedb.com>
	<2067066.1668731970@sss.pgh.pa.us>
	<2106238.1668735410@sss.pgh.pa.us>
	<CAMbWs4_v47mP3VCoqo=7GjL59rDnYPDokCqjHKsJ+gbeRY4bqA@mail.gmail.com>
	<2130228.1668748896@sss.pgh.pa.us>
	<712310f5-a5c7-b833-4f71-b562c5f2de9b@gmail.com>
	<53950f93-8cce-4440-52f1-5879653c6803@enterprisedb.com>

Tomas Vondra <tomas.vondra@enterprisedb.com> writes:
> On 11/18/22 09:54, David Geier wrote:
>> I couldn't come up with any reasonable way of writing an automated test
>> for that.

> I don't think you can write a test for this, because there is no change
> to behavior that can be observed by the user.

Yeah, and the delta in performance is surely too small to be
measured reliably in the buildfarm.  I think coverage will have
to be sufficient.

			regards, tom lane





view thread (13+ messages)  latest in thread

Message-ID: <2185327.1668782744@sss.pgh.pa.us>
Permalink:  ../2185327.1668782744@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2185327.1668782744@sss.pgh.pa.us

 · 

reply

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-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, tomas.vondra@enterprisedb.com, geidav.pg@gmail.com, guofenglinux@gmail.com
  Subject: Re: Optimize join selectivity estimation by not reading MCV stats for unique join attributes
  In-Reply-To: <2185327.1668782744@sss.pgh.pa.us>
  References: <b9846ca0-5f1c-9b26-5881-aad3f42b07f0@gmail.com> <522124.1668179795@sss.pgh.pa.us> <16acb727-24e8-6453-1711-aae339802966@gmail.com> <2f30ba9c-b707-55ae-0afd-68eb6a8a7708@enterprisedb.com> <2067066.1668731970@sss.pgh.pa.us> <2106238.1668735410@sss.pgh.pa.us> <CAMbWs4_v47mP3VCoqo=7GjL59rDnYPDokCqjHKsJ+gbeRY4bqA@mail.gmail.com> <2130228.1668748896@sss.pgh.pa.us> <712310f5-a5c7-b833-4f71-b562c5f2de9b@gmail.com> <53950f93-8cce-4440-52f1-5879653c6803@enterprisedb.com> <2185327.1668782744@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