Query going to all paritions - Mailing list pgsql-performance

From aditya desai
Subject Query going to all paritions
Date
Msg-id CAN0SRDFTummB0w5L_ijZq+ufZx8s6+Wdm96SEwqkQZYeUjpf=w@mail.gmail.com
Whole thread Raw
Responses Re: Query going to all paritions  (Laurenz Albe <laurenz.albe@cybertec.at>)
List pgsql-performance
Hi,
Query on  one of our partitioned tables which is range partitioned on "run"date" column is going to all partitions despite having run_date in WHERE clause. "enable_parition_pruning" is also on. I am unable to generate a query plan as the query never runs fully even waiting for say half an hour.

We have composite indexes on run_date,status. Do I need to create an index on run_date only?

Any other solutions?

Regards,
Aditya.

pgsql-performance by date:

Previous
From: Fabien COELHO
Date:
Subject: How to improve cockroach performance with pgbench?
Next
From: Laurenz Albe
Date:
Subject: Re: Query going to all paritions