I want to compile PostgreSQL and need to set a default for unix_socket_location
. It should be /var/run/postgresql
instead of /tmp
like in the default build configuration.
In fact I just want to set a default for the unix_socket_location
parameter, but I don't get where to set it. It is no ./configure option
, and I don't know where to look anymore, althought the docs say it can be changed during build time.
Where do I set a default for unix_socket_location
?
Best Answer
Edit
src/include/pg_config_manual.h
, changeDEFAULT_PGSOCKET_DIR
, (re-)build.