Re: limit in subquery causes poor selectivity estimation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: limit in subquery causes poor selectivity estimation
Дата
Msg-id 9086.1315175498@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: limit in subquery causes poor selectivity estimation  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I wrote:
> On a longer-term basis, I'm looking into what we could do with
> extracting stats from subqueries, but that doesn't seem like material
> for a backpatch.  I have a draft patch that I've been playing with
> (attached).

I've committed a heavily rewritten version of that patch.  Git HEAD
seems to do reasonably well on the test case you gave at the start of
this thread.  I'm not sure yet how well the logic will hold up in
real-world queries as opposed to simplified test cases, but give it
a try.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Kohei KaiGai
Дата:
Сообщение: Re: force_not_null option support for file_fdw
Следующее
От: Shigeru Hanada
Дата:
Сообщение: Re: force_not_null option support for file_fdw