fix: pin pg_textsearch to main@ad4f832 to fix ResourceOwnerEnlarge crash#7
fix: pin pg_textsearch to main@ad4f832 to fix ResourceOwnerEnlarge crash#7pyramation wants to merge 3 commits intomainfrom
Conversation
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
| ARG POSTGIS_VERSION=3.5.1 | ||
| ARG PG_TEXTSEARCH_VERSION=0.6.0 | ||
| # Pin to main branch commit that includes the ResourceOwnerEnlarge crash fix (PR #248) | ||
| # No tagged release includes this fix yet (latest release is v0.5.1) |
There was a problem hiding this comment.
🟡 Incorrect comment states latest release is v0.5.1 when old code used v0.6.0
The comment on line 8 says "No tagged release includes this fix yet (latest release is v0.5.1)" but the previous Dockerfile was using PG_TEXTSEARCH_VERSION=0.6.0, meaning v0.6.0 exists as a tagged release. This misleading comment could confuse maintainers about when to switch back to a tagged release, potentially causing them to miss a future release that actually includes the fix.
| # No tagged release includes this fix yet (latest release is v0.5.1) | |
| # No tagged release includes this fix yet (latest release is v0.6.0) |
Was this helpful? React with 👍 or 👎 to provide feedback.
Summary
Pins
pg_textsearchfrom the v0.6.0 prerelease tag to commitad4f832onmain, which includes the fix for theResourceOwnerEnlarge called after release startedcrash (upstream PR #248, issue #247).Why: v0.6.0 (and v0.5.1, the latest stable release) both predate the fix. The crash occurs during
ROLLBACK TO SAVEPOINTwhen pg_textsearch hooks attempt to acquire resources during cleanup — PostgreSQL 17's strict resource owner tracking rejects this. No tagged release includes the fix yet.What changed:
ARG PG_TEXTSEARCH_VERSION=0.6.0→ARG PG_TEXTSEARCH_COMMIT=ad4f8328780367526fce8997207fa701ef4d014d--branch v0.6.0 --depth 1to full clone +git checkout ${PG_TEXTSEARCH_COMMIT}(shallow clone can't checkout arbitrary commits)CREATE EXTENSION pgsodium;from thetesttarget (pgsodium was already removed from the Dockerfile in a prior merge)Updates since last revision
ae1c221did not exist in the pg_textsearch repo (caused amd64 CI build failure). The correct commit for PR #248 isad4f832. Now using the full 40-character hash for robustness.pgsodiumfrom the Makefile test target to sync with the Dockerfile (which no longer builds pgsodium).Review & Testing Checklist for Human
ad4f832is titled "crash when creating BM25 index on temp table" — confirm this actually addresses theResourceOwnerEnlargecrash duringROLLBACK TO SAVEPOINT, not a different issueapplication/apptests) to confirm theResourceOwnerEnlargeerrors are gone--depth 1) may be slower; considergit clone --depth Nif build times regress noticeablySuggested test plan: Merge → trigger GHCR image publish → retrigger constructive-db PR #562 CI → verify all 20 checks pass (the
test (application/app)job was the one failing withResourceOwnerEnlarge).Notes