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

Chooses wrong password when connecting #51

Closed
feikesteenbergen opened this issue Aug 12, 2016 · 0 comments
Closed

Chooses wrong password when connecting #51

feikesteenbergen opened this issue Aug 12, 2016 · 0 comments

Comments

@feikesteenbergen
Copy link
Contributor

When trying to connect to a localhost connection, the wrong password is supplied, this is my .pgpass:

localhost:*:*:fsteenbergen:password1
*:*:*:postgres:postgres
*:*:*:fsteenbergen:password2

It takes the password password2

As psycopg2 will take care of correct PGPASSFILE handling itself, why not just drop the magic?

feikesteenbergen added a commit to feikesteenbergen/pg_activity that referenced this issue Aug 12, 2016
Don't do anything to get the password from the PGPASSFILE.
Psycopg2 uses libpq which does all the password handling correctly.

Addresses issue dalibo#51
@julmon julmon closed this as completed Oct 5, 2016
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

No branches or pull requests

2 participants