Re: Why we don't want hints - Mailing list pgsql-performance

From Scott Marlowe
Subject Re: Why we don't want hints
Date
Msg-id AANLkTik8hhy9UOAMgQnM-=fi0eZ0x=0=o=b=_N=qJxHY@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] Slow count(*) again...  (Mladen Gogala <mladen.gogala@vmsinfo.com>)
List pgsql-performance
On Sun, Feb 13, 2011 at 10:49 PM, Josh Berkus <josh@agliodbs.com> wrote:
>
>> I fail to see how 1 through 3 can tell the planner the correlation
>> between two fields in two separate tables.
>
> CREATE CORRELATION_ESTIMATE ( table1.colA ) = ( table2.colB ) IS 0.3
>
> ... and then it fixes the correlation for *every* query in the database, not
> just that one.  And is easy to fix if the correlation changes.

I like that.  Even better, could we setup some kind of simple command
to tell analyze to collect stats for the two columns together?

pgsql-performance by date:

Previous
From: Mark Rostron
Date:
Subject: Re: comparison of 8.3.10 to 8.3.14 reveals unexpected difference in explain plan
Next
From: "Gnanakumar"
Date:
Subject: How to boost performance of queries containing pattern matching characters