arenadotio / pgx

A pure OCaml PostgreSQL client library
Other
122 stars 16 forks source link

unix_domain_socket_dir #131

Open apsheronets opened 1 year ago

apsheronets commented 1 year ago

Looks like it's /var/run/postgresql for async and /tmp for everything else.

richardhuxton commented 1 year ago

The PostgreSQL source-code defaults to /tmp (see src/backend/utils/misc/postgresql.conf.sample) probably because of the large number of pllatforms it supports. However, both Debian and Red-Hat based linux distros use /var/run/postgresql for their packages. I suspect any other linux distros would too. I'm guessing people using homebrew or similar on a Mac might get "/tmp" - no idea about Windows.