pg_kpart version 2.0 released
Goteburg, Sweden - December 03, 2026
pg_kpart - Reject queries that scan all partitions without using the partition key
pg_kpart is a PostgreSQL extension that rejects queries which would scan every partition of a partitioned table without a usable predicate on the partition key. It prevents accidental full-hierarchy scans caused by missing WHERE/JOIN conditions on the partition key.
New release v2.0 have been published. This realease adds support to PG19 and a new feature to disable partition creation during peak hours.
- Add new GUC:
pg_kpart.deny_partition_creationto allow to forbid the creation of partitions during given time-of-day windows, to avoid taking locks on busy partitioned tables during peak hours. Default: empty, no restriction. The value is a comma-separated list ofHH:MM[:SS]-HH:MM[:SS]windows, start included and end excluded, for example '08:00-12:00, 14:00-18:00'. A window may wrap around midnight ('22:00-06:00') and 24:00 is accepted as end of window. Invalid values are rejected by a check hook. - Add new GUC:
pg_kpart.nouser_change. Default: off. When set to on, it will prevent non superuser roles to mofidy the settings of the pg_kpart extension.
See complete list of changes here.
Links & Credits
pg_kpart is an open project. Any contribution to build a better tool is welcome. You just have to send your ideas, features requests or patches using the GitHub tools. …