Skip to content

fix: preload pg_textsearch in shared_preload_libraries#5

Open
pyramation wants to merge 4 commits intomainfrom
devin/1772679615-bake-preload-and-root
Open

fix: preload pg_textsearch in shared_preload_libraries#5
pyramation wants to merge 4 commits intomainfrom
devin/1772679615-bake-preload-and-root

Conversation

@pyramation
Copy link
Contributor

@pyramation pyramation commented Mar 5, 2026

Summary

Appends pg_textsearch to shared_preload_libraries in postgresql.conf.sample so that CREATE EXTENSION pg_textsearch works without requiring manual postgres configuration. This fixes the pg_textsearch library not loaded errors in constructive-db CI.

One-line change — the extension was already compiled and installed by the multi-stage build, but never preloaded at startup.

pgsodium is intentionally not included in shared_preload_libraries because it requires a pgsodium_getkey script at boot, which causes the container to crash on startup if absent.

Review & Testing Checklist for Human

  • Verify the base postgres:17-alpine image doesn't already set shared_preload_libraries in postgresql.conf.sample. The append (>>) means a second directive would take effect (last value wins in postgres config), but it's worth confirming there's no unintended override.
  • After merge and image rebuild, re-run constructive-db CI to confirm the pg_textsearch library not loaded error is resolved.
  • Confirm that excluding pgsodium from preload doesn't break any downstream consumers that depend on CREATE EXTENSION pgsodium (they would need to configure shared_preload_libraries themselves or the image needs a pgsodium_getkey script added separately).

Notes


Open with Devin

- Add pg_textsearch and pgsodium to shared_preload_libraries in postgresql.conf.sample
- Create root superuser role via initdb script (fixes CI health check failures)
- Push to Docker Hub (constructiveio/postgres) in addition to GHCR
- Requires DOCKERHUB_USERNAME and DOCKERHUB_TOKEN repo secrets
@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 feat: bake shared_preload_libraries, root role, and Docker Hub push feat: bake shared_preload_libraries and add Docker Hub push Mar 5, 2026
@devin-ai-integration devin-ai-integration bot changed the title feat: bake shared_preload_libraries and add Docker Hub push fix: preload pg_textsearch and pgsodium in shared_preload_libraries Mar 5, 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: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@devin-ai-integration devin-ai-integration bot changed the title fix: preload pg_textsearch and pgsodium in shared_preload_libraries fix: preload pg_textsearch in shared_preload_libraries Mar 5, 2026
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