Re: inefficient/wrong plan cache mode selection for queries with partitioned tables (postgresql 17)
В списке pgsql-performance по дате отправления:
| От | Andrei Lepikhov |
|---|---|
| Тема | Re: inefficient/wrong plan cache mode selection for queries with partitioned tables (postgresql 17) |
| Дата | |
| Msg-id | 34dbb623-e7ef-403f-b7b1-082c856f897e@gmail.com обсуждение исходный текст |
| Ответ на | Re: inefficient/wrong plan cache mode selection for queries with partitioned tables (postgresql 17) (Maxim Boguk <maxim.boguk@gmail.com>) |
| Список | pgsql-performance |
On 5/12/25 16:04, Maxim Boguk wrote: > On Mon, May 12, 2025 at 4:48 PM Andrei Lepikhov <lepihov@gmail.com > If I'm not mistaken, it will work with all PG versions that are > currently in support. What do you think? > > > Such extension would be very useful (and in general - the solution based > on the actual execution data - seems more stable/predictable than the > plan cost based selection which is currently used by postgresql). I've written a sketch of such an extension; see [1]. A trivial strategy is implemented to force prepared statements to use a generic plan if the planning time exceeds the maximum execution time. It is just an example - it is written in plpgsql, and you can implement alternative strategies independently. I would be happy if it covered your use case. Any feedback is welcome. [1] https://github.com/danolivo/pg_mentor/tree/main -- regards, Andrei Lepikhov
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера