Skip to content

fix(postgres): make hostaddr semantics match libpq - #4514

Merged
abonander merged 9 commits into
mainfrom
ab/hostaddr
Nov 8, 2026
Merged

abonander merged 9 commits into
mainfrom
ab/hostaddr

Conversation

@abonander

@abonander abonander commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #4102 (superceded PR)

Does your PR solve an issue?

N/A

Is this a breaking change?

Minor breaking behavior change: hostaddr (env: PGHOSTADDR) is no longer treated as an alias for host, and does not pass through DNS resolution.

However, the previous behavior did not match that of libpq which is surprising and unintuitive, and also defeats the purpose of this parameter.

What's not implemented in this PR: allowing a comma-separated list of addresses in hostaddr. If this is behavior you need or desire, please open an issue for discussion before opening a PR.

@abonander abonander changed the title refactor(test): generate TLS certs on-demand fix(postgres): make hostaddr semantics match libpq Nov 8, 2026
@abonander
abonander marked this pull request as ready for review November 8, 2026 20:34
@abonander
abonander merged commit a07bb1e into main Nov 8, 2026
147 checks passed
@abonander
abonander deleted the ab/hostaddr branch November 8, 2026 21:06
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