pg_hint_plan 1.9.0 adds PostgreSQL 19 support and path generation strategies
The pg_hint_plan extension for PostgreSQL query plan tuning now supports PostgreSQL 19 and introduces path generation strategies (PGS).
Summary
pg_hint_plan 1.9.0 has been released with compatibility for PostgreSQL 19, the upcoming major version of the database. The release introduces support for path generation strategies (PGS), a new mechanism for influencing how PostgreSQL builds query execution plans. The development team also issued maintenance updates for supported PostgreSQL versions back to 14, with 1.4.5 being the final release for PostgreSQL 14.
What's new in pg_hint_plan 1.9.0
- PostgreSQL 19 compatibility: Extension builds and runs against the upcoming PostgreSQL major release
- Path generation strategies (PGS): New hint category for controlling how the planner generates candidate paths for queries
- Bug fixes across all supported branches:
- Fixed infinite loop in hint parser with multi-query strings
- Added CHECK_FOR_INTERRUPTS() in get_hints_from_comment() to improve cancel responsiveness
- Fixed server crash when HintStateDump[2] throws an ERROR
- Restored query ID after SPI execution in get_hints_from_table()
- Corrected schema-qualification of operators for hint table queries
- PostgreSQL 14 end-of-life: pg_hint_plan 1.4.5 is the final planned release for PostgreSQL 14
Why it matters
PostgreSQL 19 support positions pg_hint_plan users to upgrade without losing query plan control capabilities. The PGS feature may reduce the need for more invasive plan overrides by giving DBAs finer-grained control earlier in the planning process.
Original reference: www.postgresql.org →