erleans / pgo

Erlang Postgres client and connection pool
Apache License 2.0
76 stars 15 forks source link

Take into account local Unix domain sockets for host #66

Open memer-boy opened 1 year ago

memer-boy commented 1 year ago

Great job with this lib, and thank you all for your work, found an issue today after updating to 0.13:

https://github.com/erleans/pgo/blob/d1989c44f41ccf1b4e670ccafe46d43f71cb6dfc/src/pgo_handler.erl#L111

The above line is crashing my app as I work with local Unix domain sockets for DB connection, the code should check for a tuple before applying the above conversion.

tsloughter commented 1 year ago

Sorry, thought I replied to this. I'll get this patched, thanks for reporting it!