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

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: David Rowley <david(dot)rowley(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 23:14:22
Message-ID: CANP8+j+2JagyBZz4TB95b5o0EzQW+0HJ4sDGumtiKyDdJ_L0MA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On 6 April 2017 at 17:41, David Rowley <david(dot)rowley(at)2ndquadrant(dot)com> wrote:
> 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.

Looks enough to me, for now at least. Minor comment added.

--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-04-07 01:10:34 pgsql: Clean up after insufficiently-researched optimization of tuple c
Previous Message Simon Riggs 2017-04-06 23:13:17 pgsql: Reset API of clause_selectivity()

Browse pgsql-hackers by date

  From Date Subject
Next Message Corey Huinker 2017-04-06 23:21:21 Re: Undefined psql variables
Previous Message David Steele 2017-04-06 23:07:33 Re: increasing the default WAL segment size