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

Handle domain socket host names #90

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

cmkarlsson
Copy link
Contributor

This PR makes pgo able to connect to unix domain sockets by using a domain socket path as the hostname.

If the host name looks like an absolute path or an abstract domain socket, pgo will now use {local, Socket} alongside port 0 to connect the postgres.

This is largely done in the same way as postgrex (https://github.com/elixir-ecto/postgrex/blob/5924c181da8c7991d51bd569eb26fa4cbf4f19ed/lib/postgrex/utils.ex#L102)

This PR should also solve #66

@tsloughter
Copy link
Collaborator

Going to merge this but would love some tests.

@tsloughter tsloughter merged commit 6333127 into erleans:main Nov 13, 2024
2 checks passed
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.

2 participants