Re: Strange runtime partition pruning behaviour with 11.4

Поиск
Список
Период
Сортировка
От Andreas Kretschmer
Тема Re: Strange runtime partition pruning behaviour with 11.4
Дата
Msg-id 84f4f721-2c1b-6a31-f10e-204af2c0e624@a-kretschmer.de
обсуждение исходный текст
Ответ на Re: Strange runtime partition pruning behaviour with 11.4  (Thomas Kellerer <spam_eater@gmx.net>)
Ответы Re: Strange runtime partition pruning behaviour with 11.4  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance

Am 03.08.19 um 16:06 schrieb Thomas Kellerer:
>> it's posible to rewrite the query to:
>>
>>
>> test=# explain analyse select count(*) from foo_bar_baz as fbb where 
>> foo_id = (select foo_id from foo where foo_name = 'eeny');
>>
>> I know, that's not a solution, but a workaround. :-(
>
> Yes, I discovered that as well.
>
> But I'm more confused (or concerned) by the fact that the (original) 
> query works correctly *without* statistics.
>
> Thomas
>
>

can't reproduce that :-(  (PG 11.4 Community)

(all in a file and executed the explain immediately)


Regards, Andreas

-- 
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.com




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

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: Strange runtime partition pruning behaviour with 11.4
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Strange runtime partition pruning behaviour with 11.4