Re: Why we don't want hints Was: Slow count(*) again...

From: pasman pasmański <pasman(dot)p(at)gmail(dot)com>
To: "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Why we don't want hints Was: Slow count(*) again...
Date: 2011-06-05 15:25:39
Message-ID: BANLkTimE3isrTRmZFG8obsvYJCUxSmJzaA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

Hi. I have the idea: hints joined to function. For example instead of

WHERE table1.field1=table2.field2
write:
WHERE specificeq(table1.field1,table2.field2)

and hints add to declaration of specificeq function.

2011/2/23, Robert Haas <robertmhaas(at)gmail(dot)com>:
> On Wed, Feb 16, 2011 at 4:22 PM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
>> I am not excited about the idea of putting these correlations in
>> queries.  What would be more intesting would be for analyze to build a
>> correlation coeffficent matrix showing how columns are correlated:
>>
>>        a   b   c
>>    a   1   .4  0
>>    b   .1  1   -.3
>>    c   .2  .3  1
>>
>> and those correlations could be used to weigh how the single-column
>> statistics should be combined.
>
> If you can make it work, I'll take it... it's (much) easier said than
> done, though.
>
> --
> Robert Haas
> EnterpriseDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>
> --
> Sent via pgsql-performance mailing list (pgsql-performance(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-performance
>

--
------------
pasman

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Cyan Ogilvie 2011-06-05 15:26:35 WIP: AuthenticationMD5 protocol documentation clarification
Previous Message Gurjeet Singh 2011-06-05 14:21:36 Re: Review: psql include file using relative path

Browse pgsql-performance by date

  From Date Subject
Next Message Robert Klemme 2011-06-06 08:14:43 Re: Why we don't want hints Was: Slow count(*) again...
Previous Message Robert Haas 2011-06-03 03:55:35 Re: Understanding Hash Join performance