Skip to content

Merge: gm-6mx#1377

Open
quad341 wants to merge 2 commits intogolang-migrate:masterfrom
quad341:polecat/wren/gm-6mx@mnc5pcna
Open

Merge: gm-6mx#1377
quad341 wants to merge 2 commits intogolang-migrate:masterfrom
quad341:polecat/wren/gm-6mx@mnc5pcna

Conversation

@quad341
Copy link
Copy Markdown

@quad341 quad341 commented Mar 29, 2026

source_issue: gm-6mx
branch: polecat/wren/gm-6mx@mnc5pcna
target: master
rig: golangmigrate
strategy: fork
commit_sha: db7f224
worker: wren

wren added 2 commits March 29, 2026 12:46
…res driver

When host is specified as a query parameter (e.g., ?host=/var/run/postgresql)
and the URL has no host in the authority section, convert the connection string
to key-value format via pq.ParseURL before passing to sql.Open. This ensures
lib/pq reliably uses the host parameter instead of silently falling back to
localhost:5432.

The pgx/v5 driver handles this correctly because pgx.ParseConfig natively
supports host as a query parameter. This change brings the postgres (lib/pq)
driver to parity. (gm-6mx)
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