| От | Niels Jespersen |
|---|---|
| Тема | SV: force partition pruning |
| Дата | |
| Msg-id | e5394e430cd74d3199437dc20d944c81@dst.dk обсуждение исходный текст |
| Ответ на | Re: force partition pruning (Vijaykumar Jain <vijaykumarjain.github@gmail.com>) |
| Ответы |
Re: force partition pruning
|
| Список | pgsql-general |
>
>Sorry,
>
>I made a major mistake. I somehow saw the period and period_version as the same.
>so, yes partitions are not pruned here. So my suggestion makes no sense.
Thats quite ok. I think my plan now is to have a table returning function that executes a query dynamically. The query has a where caluse that is first constructed.
Like this:
return query execute format('select d.x, d.y from %1$I.%1$I d where d.period_version = any(' || quote_literal(_periode_version_array) ||'::text[])', register_in);
Regards Niels
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера