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

Use a local socket connection to the ConceptNet database #146

Merged
merged 2 commits into from
Jan 31, 2018
Merged

Conversation

rspeer
Copy link
Member

@rspeer rspeer commented Nov 15, 2017

This change makes ConceptNet default to connecting to PostgreSQL via a "local socket", a file-like object in /var/run.

I think this is more efficient than connecting over a network port, but the primary advantage is that this kind of connection can be handled differently by PostgreSQL, including not requiring a password.

As I try to get rid of Docker, this makes a good substitute for the fact that I managed to configure the PostgreSQL within Docker to never require passwords. (It'll still use a password if you supply one in the appropriate environment variable, so this shouldn't break things for people who set up a password and stuff to run ConceptNet outside of Docker.)

@rspeer rspeer merged commit 709d757 into master Jan 31, 2018
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