Skip to content- Sources: primary
- Summary: Jianghua Yang reports that all PostgreSQL 19 API changes fit in 13 PG_VERSION_NUM guards across six translation files, with none inside ORCA's Cascades engine. Running PG 19's 223 regression tests found a LATERAL predicate pushdown gap that took a join from about two minutes to about 15 ms once fixed, wrong results from hashed aggregates because Agg.aggParams was never set, and dropped multi-key DISTINCT sort keys. The port also plumbs PG 19's IGNORE NULLS window option through ORCA and fixes a Result node assertion from PG 19's new result_type field.
- Why it matters: Extension authors targeting PostgreSQL 19 get a concrete list of changed planner and executor APIs, including table_beginscan flag splits and the Result.result_type assertion.
- Background: ORCA is the Cascades-style cost-based optimizer from Greenplum, now in Apache Cloudberry. pg_orca loads it into stock PostgreSQL through planner_hook and translates query trees to and from ORCA's DXL format, falling back to the standard planner on unsupported features.