Skip to content

Match HOME lookups with libpq#1214

Merged
arp242 merged 1 commit intomasterfrom
home
Jan 2, 2026
Merged

Match HOME lookups with libpq#1214
arp242 merged 1 commit intomasterfrom
home

Conversation

@arp242
Copy link
Collaborator

@arp242 arp242 commented Jan 2, 2026

This matches selection of the HOME directory with what libpq does:

  • Prefer $HOME on non-windows systems.
  • Use %APPDATA% on Windows
  • Don't use .postgresql subdirectory on Windows.
  • Ignore ENOTDIR errors.

Fixes #395
Fixes #609

This matches selection of the HOME directory with what libpq does:

- Prefer $HOME on non-windows systems.
- Use %APPDATA% on Windows
- Don't use .postgresql subdirectory on Windows.
- Ignore ENOTDIR errors.

Fixes #395
Fixes #609
@arp242 arp242 merged commit 07cb932 into master Jan 2, 2026
37 of 39 checks passed
@arp242 arp242 deleted the home branch January 2, 2026 06:39
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.

ssl.go panics if $HOME is not a directory home directory lookup can fail

1 participant