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

allow ssl over UNIX domain sockets #1112

Closed
wants to merge 2 commits into from
Closed

Conversation

drakkan
Copy link
Contributor

@drakkan drakkan commented Mar 21, 2023

It is not supported in Postgres 9.6

https://www.postgresql.org/docs/9.6/runtime-config-connection.html

SSL communication is only possible with TCP/IP connections.

but it is supported in Postgres 10 and above

https://www.postgresql.org/docs/10/runtime-config-connection.html

Here are the supported Postgres versions:

https://www.postgresql.org/support/versioning/

@cbandy
Copy link
Contributor

cbandy commented Mar 21, 2023

I haven't looked at postgres code for this recently, but the docs for libpq say:

sslmode is ignored for Unix domain socket communication.

@drakkan
Copy link
Contributor Author

drakkan commented Mar 22, 2023

you're right, this is an oversight. I was working on multi host connections and that code creates problems if one of the hosts is a unix domain socket. We have to keep that check. Thank you

@drakkan drakkan closed this Mar 22, 2023
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.

None yet

2 participants