November 19, 2026: PostgreSQL 19 Released!

pg_kpart version 2.0 released

Posted on 2026-12-04 by HexaCluster
Related Open Source

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_creation to 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 of HH: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.

Thank to the developers who submitted patches and users who reported bugs and feature requests, they are all cited in the ChangeLog file.

Links:


About pg_kpart

The objective of pg_kpart is to have a tool to help PostgreSQL DBAs to enforce the correct use of PostgreSQL partitioning.

Tool created at HexaCluster Corp and maintained by Gilles Darold.

pg_kpart works on Linux platform and is available under the PostgreSQL license.