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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[postgres] Fix unix socket connection with psycopg2 #2968

Merged
merged 1 commit into from Oct 27, 2016

Conversation

olivielpeau
Copy link
Member

@olivielpeau olivielpeau commented Oct 27, 2016

What does this PR do?

Fix the postgres check to make it handle psycopg2 nicely with the support of UNIX sockets

Motivation

Fixing the postgres check that I completely broke by merging #2734

Testing Guidelines

Ran the updated check on a local postgres DB, with and without a UNIX socket as host, and with use_psycopg2 enabled and disabled

Additional notes

馃槚

psycopg2 can connect to a unix socket by passing the directory to the
socket to the `host` parameter of its `connect` function
Copy link
Member

@degemer degemer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃憤

@olivielpeau olivielpeau merged commit 5926c80 into master Oct 27, 2016
@olivielpeau olivielpeau deleted the olivielpeau/fix-postgres-check branch October 27, 2016 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants