Skip to content
RED SAG Skills
hard20 pts · first answer countspostgresqlpartitioning

Query scans every partition

orders is range-partitioned by created_at into 36 monthly partitions. This query scans all 36. Why?

SELECT sum(total) FROM orders
WHERE date_trunc('month', created_at) = '2026-03-01';
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions