Repository navigation
fix: harden native extension for PostgreSQL 18.7 / 17.12 - #5
Conversation
|
Completed PG17/18 integration suites and lint have passed on this security branch; the current head is still rerunning. Standalone Rust loader failures were not backend regressions. New pgrx dependencies remain in x86 test relocations even when unused. Added trapping weak stubs, and diagnostic nm output identified the complete remaining backend set on both majors: MemoryContextRegisterResetCallback and InterruptHoldoffCount. Both are now resolved. The new function stubs trap if called, rather than silently mocking backend memory allocation. No production code was changed for this CI-only issue. Local full PG18 backend suite remains 533 passed; final CI rerun is pending. |
|
All seven checks now pass on a26642d: PG17/18 backend unit suites, PG17/18 integration, PG18 correctness, strict lint, and dependency security. The standalone loader now resolves its complete new dependency set; new function stubs trap on accidental use. Local old-data upgrade fixture passed, all 31 legacy C entrypoints remain exported, and all 34 live SQL 0.2.0 function contracts match fresh candidate .7 definitions exactly. No production mutation. Preparing the versioned .7 release for downstream artifact qualification. |
Why
Unblocks https://github.com/dotCMS/ovh-k8s-cluster/issues/1186. PostgreSQL 18.7/17.12 require rebuilt native extensions for CVE-2026-6460; old pgrx's handwritten header helpers miss the new checks. This is based on the dotCMS production fork, preserving all .6 fixes.
Changes
Checks / release gates
cargo checkand strict clippy on PG18 pass locally. Full unit and integration/correctness suites are running locally/CI. Trivy source-lockfile scan currently reports no findings; that is not an exploitability or complete runtime-safety claim.Before publication/production use, qualify .6-compressed data reads, existing SQL/C-symbol compatibility and the composite-datum regression on both supported PG versions. The platform image still has unrelated unpatched OS findings. No production deployment is performed by this PR.