Ability to use Postgres socket #2460
Replies: 3 comments
-
I would also like to be able to do this. I already do it for a few other containers, by creating a shared docker volume mount, and it works great. |
Beta Was this translation helpful? Give feedback.
-
Are there any functional benefits to this, or is it simply a different way of providing the configuration? |
Beta Was this translation helpful? Give feedback.
-
My understanding is that UNIX sockets can be much faster than TCP sockets12 That said, it turns out this already works if one sets So the main thing missing would be a note in the documentation that a socket path can be set for that config value. Footnotes |
Beta Was this translation helpful? Give feedback.
-
Hi, would it be possible to add support to connect to Postgres via unix socket please?
The DSN would be in this format for Pydantic v1:
'postgresql://derp@/databasename?host=/var/run/postgresql'
I believe this is valid in pydantic v2
postgresql://derp@%2Fvar%2Frun%2Fpostgresql/databasename
Reading db_providers.py I don't believe I can achieve this DSN at the moment.
Thank you for a great project!
Beta Was this translation helpful? Give feedback.
All reactions