You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Linux server deployment: dd.bootstrap.cluster must set or provision the socket directory Debian moves to /var/run/postgresql (deferred from #228) #229
Filed from the one open review thread on #228, by the owner's decision on #211 (7 October): it does not affect the Mac move and is deferred to the Linux server deployment that #211 names as future work.
The finding.#228 stopped writing unix_socket_directories when it creates a cluster, because on this Mac it forced an unneeded restart. PostgreSQL's compiled-in default socket directory is /tmp, but Debian's packages patch it to /var/run/postgresql (51-default-sockets-in-var.patch). On a Debian or Ubuntu server, a cluster created by mix dd.bootstrap.cluster without that directory existing and writable by the PostgreSQL account fails to start, and the tool's local connections would look for a socket that is never created.
The fix, when the Linux deployment starts. Either pass the socket directory explicitly as a server command-line option whenever one is set (and have dd.bootstrap.cluster verify it exists and is writable before initdb), or create and own the Debian default directory as part of the server's provisioning. Add a test that a cluster created on a Debian-defaulted build starts and answers on its socket.
Not needed for #211. The Mac move runs on Postgres.app 18.2, whose default is /tmp, and every connection the move makes is over TCP on localhost.
Absorbed into #252 (hosting: host choice, release build, the pins to lift), on the owner's word, 21 October 2026. #252 carries the 21 October hardware inventory and the recommendation; this issue's content stands as part of its checklist.
Activity
holden commentedon Oct 21, 2026
Absorbed into #252 (hosting: host choice, release build, the pins to lift), on the owner's word, 21 October 2026. #252 carries the 21 October hardware inventory and the recommendation; this issue's content stands as part of its checklist.