Runtime partition pruning - Mailing list pgsql-general

From Radu Radutiu
Subject Runtime partition pruning
Date
Msg-id CAG4TxritPg9F3KsXtbtCHvDNBWZi5dwU4vLzVkHrr+CDGve-aQ@mail.gmail.com
Whole thread Raw
Responses Re: Runtime partition pruning  (Michael Lewis <mlewis@entrata.com>)
List 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 by date:

Previous
From: Christopher Browne
Date:
Subject: Re: Loading 500m json files to database
Next
From: Rob Sargent
Date:
Subject: Re: Loading 500m json files to database