Skip to content

fix: pin pg_textsearch to main@ad4f832 to fix ResourceOwnerEnlarge crash#7

Open
pyramation wants to merge 3 commits intomainfrom
devin/1772761680-pin-pg-textsearch-fix
Open

fix: pin pg_textsearch to main@ad4f832 to fix ResourceOwnerEnlarge crash#7
pyramation wants to merge 3 commits intomainfrom
devin/1772761680-pin-pg-textsearch-fix

Conversation

@pyramation
Copy link
Contributor

@pyramation pyramation commented Mar 6, 2026

Summary

Pins pg_textsearch from the v0.6.0 prerelease tag to commit ad4f832 on main, which includes the fix for the ResourceOwnerEnlarge called after release started crash (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 SAVEPOINT when 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:

  • Dockerfile: ARG PG_TEXTSEARCH_VERSION=0.6.0ARG PG_TEXTSEARCH_COMMIT=ad4f8328780367526fce8997207fa701ef4d014d
  • Dockerfile: Clone switched from --branch v0.6.0 --depth 1 to full clone + git checkout ${PG_TEXTSEARCH_COMMIT} (shallow clone can't checkout arbitrary commits)
  • Makefile: Removed stale CREATE EXTENSION pgsodium; from the test target (pgsodium was already removed from the Dockerfile in a prior merge)

Updates since last revision

  • Fixed incorrect commit hash: the original ae1c221 did not exist in the pg_textsearch repo (caused amd64 CI build failure). The correct commit for PR #248 is ad4f832. Now using the full 40-character hash for robustness.
  • Removed pgsodium from the Makefile test target to sync with the Dockerfile (which no longer builds pgsodium).
  • Both amd64 and arm64 Docker builds pass CI.

Review & Testing Checklist for Human

  • Verify the pinned commit is correct: Commit ad4f832 is titled "crash when creating BM25 index on temp table" — confirm this actually addresses the ResourceOwnerEnlarge crash during ROLLBACK TO SAVEPOINT, not a different issue
  • End-to-end validation: Merge this PR, publish the new GHCR image, then re-run the constructive-db CI (especially application/app tests) to confirm the ResourceOwnerEnlarge errors are gone
  • Build time impact: The full repo clone (no --depth 1) may be slower; consider git clone --depth N if build times regress noticeably

Suggested 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 with ResourceOwnerEnlarge).

Notes

  • Once a tagged release of pg_textsearch includes the fix, switch back to a version pin for reproducibility
  • Requested by @pyramation
  • Devin Session

Open with Devin

@devin-ai-integration
Copy link

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@devin-ai-integration devin-ai-integration bot changed the title fix: pin pg_textsearch to main@ae1c221 to fix ResourceOwnerEnlarge crash fix: pin pg_textsearch to main@ad4f832 to fix ResourceOwnerEnlarge crash Mar 6, 2026
Copy link

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View 2 additional findings in Devin Review.

Open in Devin Review

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)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.

Suggested change
# 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)
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant