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 just a tiny bit more detail about unix socket connection strings #169

Open
atrauzzi opened this issue Jan 9, 2022 · 1 comment
Open

Comments

@atrauzzi
Copy link

atrauzzi commented Jan 9, 2022

After reading this page: https://www.npgsql.org/doc/connection-string-parameters.html?q=Unix-domain%20sockets

It would be nice to have the following:

  • A full example of a unix socket connection string
  • Any details around whether the npgsql driver generates or appends /.s.PGSQL.5432 or if it needs to be specified explicitly
  • An explanation as to why the port is still required when configuring socket connections
@roji
Copy link
Member

roji commented Jan 12, 2022

This works similiar to how the PostgreSQL libpq host works (see docs): you specify the directory where the Unix-domain socket is, and Npgsql appends the file name, integrating the port number. That seems pretty clear from the doc text, no?

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