Skip to content

Conversation

@smsohan
Copy link

@smsohan smsohan commented Nov 26, 2023

Fixes code sample that showed the key host instead of socketPath when connecting via a socket

Fixes code sample that showed the key `host` instead of `socketPath` when connecting via a socket
Copy link
Member

@WikiRik WikiRik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 96 also mentions the host key. Can you provide a link that shows that it should be socketPath?

@ephys
Copy link
Member

ephys commented Dec 12, 2023

I don't see any mention of socketPath in pg's documentation. Do you know where I can find it? Best I could find was this thread which indicates that host is the intended option: brianc/node-postgres#16 (comment)

@ephys
Copy link
Member

ephys commented Apr 11, 2024

Based on the changes we recently implemented, I can confirm that socketPath does not exist for pg and that host must be used instead. This has now been documented

@ephys ephys closed this Apr 11, 2024
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.

3 participants