Skip to content

Conversation

@universe-ops
Copy link
Contributor

Fixed a critical issue where multi-line initSQL configurations would fail due to shell command-line parsing limitations.

Problem

Multi-line SQL initialization commands were passed using psql -c "$INIT_SQL", which caused issues with:

  • Shell variable expansion breaking on newlines
  • Command-line parsing errors with complex SQL
  • Quote escaping issues in shell context

Solution

Changed SQL execution method from command-line flag to stdin piping:

Before:

PGDATABASE="$DB_NAME" psql -c "$INIT_SQL"

@universe-ops universe-ops merged commit 7598b5f into main Jan 6, 2026
1 check passed
@universe-ops universe-ops deleted the staging branch January 6, 2026 12:04
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.

3 participants