Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support to handle unix socket in the host option
When calling the function pgsql:connect/2, instead of {host, "server.example.com"} you can provide the path to the unix socket like {host, "unix:/path/to/socket"} For example: {host, "unix:/var/run/postgresql/.s.PGSQL.5432"} In that case, there is no need to provide the 'port' option.
- Loading branch information