Runtime partition pruning

Поиск
Список
Период
Сортировка
От Radu Radutiu
Тема Runtime partition pruning
Дата
Msg-id CAG4TxritPg9F3KsXtbtCHvDNBWZi5dwU4vLzVkHrr+CDGve-aQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Runtime partition pruning
Список pgsql-general
Hello list, 

Is runtime partition pruning available in PostgreSQL 12?

I have a table partitioned by range on column id (primary  key).
For the query (client_id is passed as a parameter from the application):

select * from test  where id between>0 and  and id<1000 and client_id=? ;

partition pruning works fine.

However

select * from test where id between client_id-10 and client_id+10  and client_id=?;

does not (it scans all partitions in parallel) . 
Is it expected?

Regards,
Radu

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

Предыдущее
От: Christopher Browne
Дата:
Сообщение: Re: Loading 500m json files to database
Следующее
От: Rob Sargent
Дата:
Сообщение: Re: Loading 500m json files to database