Re: [COMMITTERS] pgsql: Collect and use multi-column dependency stats

From: David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql: Collect and use multi-column dependency stats
Date: 2017-04-06 21:41:24
Message-ID: CAKJS1f9yurJQW9pdnzL+rmOtsp2vOytkpXKGnMFJEO-qz5O5eA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On 7 April 2017 at 00:47, Simon Riggs <simon(at)2ndquadrant(dot)com> wrote:
> On 5 April 2017 at 18:48, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Simon Riggs <simon(at)2ndQuadrant(dot)com> writes:
>>> Collect and use multi-column dependency stats
>>
>> The buildfarm is unhappy about the fact that this changed the API
>> for clauselist_selectivity(). I am not convinced that that change
>> was a good idea, so before telling FDW authors that they need to
>> change their code, I'd like to hear a defense of the API change.
>> Why not just use the existing varRelid parameter for that? Why
>> is there an assumption that only one rel's extended stats will
>> ever be of interest? This function does get used for join clauses.
>
> Point noted. Reading thread and hope to fix today.

I've attached a rebased patch which fixes up the conflict with the
BRIN cost estimate patch which went in a short while ago.

--
David Rowley http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Attachment Content-Type Size
find_relation_from_clauses_v3.patch application/octet-stream 13.3 KB

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2017-04-06 21:50:02 pgsql: Allow avoiding tuple copy within tuplesort_gettupleslot().
Previous Message Joe Conway 2017-04-06 21:28:42 pgsql: Silence uninitialized variable compiler warning in sepgsql

Browse pgsql-hackers by date

  From Date Subject
Next Message David Steele 2017-04-06 21:45:39 Re: increasing the default WAL segment size
Previous Message Andres Freund 2017-04-06 21:36:41 Re: parallel explain analyze support not exercised