Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for .pgpass file #617

Merged
merged 5 commits into from
Dec 14, 2022
Merged

Add support for .pgpass file #617

merged 5 commits into from
Dec 14, 2022

Conversation

sosedoff
Copy link
Owner

@sosedoff sosedoff commented Dec 13, 2022

Control flow:

  • If --passfile option is provided by a user, use that.
  • Fall back to PGPASSFILE env var to determine location of the pass file.
  • Finally, use $HOME/.pgpass if it exists.

If .pgpass file is not readable (ie on syntax error), do not use it and print a warning message.

@sosedoff sosedoff merged commit e0a7488 into master Dec 14, 2022
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