Re: performance regression in 9.2 CTE with SRF function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: performance regression in 9.2 CTE with SRF function
Дата
Msg-id 18987.1360593368@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: performance regression in 9.2 CTE with SRF function  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: performance regression in 9.2 CTE with SRF function  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
>> no, there is strange estimation
>> 
>> SubPlan 2
>> ->  CTE Scan on pl pl_1  (cost=0.00..468.59
>> rows=89000 width=4) (actual time=0.023..8.379 rows=566 loops=1000)
>> Output: foo(pl_1.a)

Nothing strange about it.  89 rows out from the underlying CTE (which
appears to be dead accurate) times 1000 for the SRF's expansion.

> respective why estimation is unstrable

It isn't --- you are looking at two different subplans there, one with
a SRF in it and one without.
        regards, tom lane



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

Предыдущее
От: Boszormenyi Zoltan
Дата:
Сообщение: Re: Re: Proposal for Allow postgresql.conf values to be changed via SQL [review]
Следующее
От: Dimitri Fontaine
Дата:
Сообщение: Re: sql_drop Event Trigger