services: postgresql: Change service default socket directory.

Fixes <https://bugs.gnu.org/46737>.

PostgreSQL running with a different socket directory to the default one in the
package itself breaks some services, this commit restores the previous
behaviour where PostgreSQL by default will run with a socket directory that
matches the default used by PostgreSQL packaged for Guix.

Switching to a different default value can happen, but only alongside changing
the PostgreSQL package.

* gnu/services/databases.scm (<postgresql-config-file>)[socket-directory]:
Change default to #false.
* doc/guix.texi (Database Services): Update documentation, and specify a
different value for disabling connections via sockets.
* gnu/tests/guix.scm (%guix-data-service-os): Use default PostgreSQL
behaviour.
* gnu/tests/monitoring.scm (%zabbix-os): Likewise.
* gnu/tests/web.scm (patchwork-os): Likewise.

Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
Christopher Baines 2021-04-12 21:41:41 +01:00 committed by Leo Famulari
parent 1bbed20332
commit c311147bd1
No known key found for this signature in database
GPG key ID: 2646FA30BACA7F08
5 changed files with 10 additions and 20 deletions

View file

@ -309,12 +309,7 @@ zabbix||{}
(service dhcp-client-service-type)
(service postgresql-service-type
(postgresql-configuration
(postgresql postgresql)
;; XXX: Remove when postgresql default socket directory is
;; changed to /var/run/postgresql.
(config-file
(postgresql-config-file
(socket-directory #f)))))
(postgresql postgresql)))
(service zabbix-front-end-service-type
(zabbix-front-end-configuration
(db-password "zabbix")))