Re: Why we don't want hints

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Why we don't want hints
Дата
Msg-id AANLkTik8hhy9UOAMgQnM-=fi0eZ0x=0=o=b=_N=qJxHY@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Slow count(*) again...  (Mladen Gogala <mladen.gogala@vmsinfo.com>)
Список 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 по дате отправления:

Предыдущее
От: Mark Rostron
Дата:
Сообщение: Re: comparison of 8.3.10 to 8.3.14 reveals unexpected difference in explain plan
Следующее
От: "Gnanakumar"
Дата:
Сообщение: How to boost performance of queries containing pattern matching characters