Skip to content

fix: add database name to postgres healthcheck#203

Open
keithy wants to merge 1 commit intonextlevelbuilder:mainfrom
keithy:fix/postgres-healthcheck-db-name
Open

fix: add database name to postgres healthcheck#203
keithy wants to merge 1 commit intonextlevelbuilder:mainfrom
keithy:fix/postgres-healthcheck-db-name

Conversation

@keithy
Copy link

@keithy keithy commented Mar 14, 2026

Summary

  • Fix postgres healthcheck to specify -d ${POSTGRES_DB} instead of defaulting to username
  • Resolves "database does not exist" error when POSTGRES_USER differs from POSTGRES_DB

Test plan

  • Verify healthcheck passes with custom POSTGRES_USER/POSTGRES_DB values
  • Verify default behavior unchanged when using defaults (goclaw/goclaw)

💘 Generated with Crush

When POSTGRES_USER differs from POSTGRES_DB, pg_isready defaults to
connecting to a database named after the user, causing healthcheck
to fail with "database does not exist".
@keithy keithy force-pushed the fix/postgres-healthcheck-db-name branch from be71bb1 to 7962a3e Compare March 14, 2026 19:14
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