pg0 currently hardcodes localhost in its PostgreSQL connection URIs.
On machines where localhost resolves to an address other than 127.0.0.1, pg0 start can fail during follow-up connection steps, and the reported URI can also be unusable for clients.
Suggested fix:
- replace hardcoded
localhost with 127.0.0.1 for local TCP connection URIs
- or introduce a configurable host for local connections, with
127.0.0.1 as the default
Why this helps:
- avoids DNS / host resolution variance for
localhost
- preserves a deterministic default for the common local case
- leaves room for environments that prefer or require a different loopback host such as
::1
pg0 currently hardcodes
localhostin its PostgreSQL connection URIs.On machines where
localhostresolves to an address other than127.0.0.1,pg0 startcan fail during follow-up connection steps, and the reported URI can also be unusable for clients.Suggested fix:
localhostwith127.0.0.1for local TCP connection URIs127.0.0.1as the defaultWhy this helps:
localhost::1