Install PostgreSQL from theseus-rs/postgresql-binaries instead of apt#4310
Merged
kyleconroy merged 4 commits intomainfrom Feb 22, 2026
Merged
Install PostgreSQL from theseus-rs/postgresql-binaries instead of apt#4310kyleconroy merged 4 commits intomainfrom
kyleconroy merged 4 commits intomainfrom
Conversation
Replace the apt-based PostgreSQL installation with pre-built binaries from github.com/theseus-rs/postgresql-binaries. This eliminates the apt dependency for PostgreSQL entirely. Key changes: - Download PostgreSQL 16.8.0 binaries from theseus-rs/postgresql-binaries - Verify downloads with hardcoded SHA256 checksums (linux/amd64 and linux/arm64) - Install to /opt/sqlc/postgresql (sqlc-specific directory) - Use pg_ctl and initdb directly instead of systemd/service for lifecycle - Run PostgreSQL as the current user (no postgres system user needed) - Configure pg_hba.conf and postgresql.conf programmatically https://claude.ai/code/session_018koD7tHEa2W5cXbiPPYatB
- Upgrade from PostgreSQL 16.8.0 to 18.2.0 with updated SHA256 checksums - Store PostgreSQL binaries in ~/.cache/sqlc/postgresql (via os.UserCacheDir) instead of /opt/sqlc/postgresql, eliminating the need for sudo to create the install directory https://claude.ai/code/session_018koD7tHEa2W5cXbiPPYatB
PostgreSQL 18 rejects --pwfile=/dev/null because the file is empty. Since we use --auth=trust for initial setup (and set the password afterward via ALTER USER), the --pwfile flag is unnecessary. https://claude.ai/code/session_018koD7tHEa2W5cXbiPPYatB
The prebuilt PostgreSQL 18 binary includes uuid-ossp.so which links against libossp-uuid.so.16. Install the system package so the extension can be loaded at runtime. https://claude.ai/code/session_018koD7tHEa2W5cXbiPPYatB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace the apt-based PostgreSQL installation with pre-built binaries from
github.com/theseus-rs/postgresql-binaries. This eliminates the apt dependency
for PostgreSQL entirely.
Key changes:
https://claude.ai/code/session_018koD7tHEa2W5cXbiPPYatB