diff options
author | Christopher Baines <mail@cbaines.net> | 2020-10-02 19:15:44 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-10-20 22:39:43 +0100 |
commit | bdcf4d88d58798eca7811c8b1fbd4638168d05c3 (patch) | |
tree | 97ba20551cd0737ed31d0f940b34508b2364850d /gnu/services | |
parent | 21b712acc73f6a0a8f9d44ae32438539b78b3db6 (diff) | |
download | guix-bdcf4d88d58798eca7811c8b1fbd4638168d05c3.tar guix-bdcf4d88d58798eca7811c8b1fbd4638168d05c3.tar.gz |
services: databases: Don't specify a default postgresql version.
Currently, if the postgresql package major version changes, this is going to
break the service upon upgrade, because PostgreSQL will reject the data files
from the differing major version of the service.
Because it's important to either keep running a particular major version, or
intentionally upgrade, I think the configuration would be better with no
default. I think this is also going to be helpful when trying to assist users
upgrading PostgreSQL.
* gnu/services/databases.scm (<postgresql-configuration>): Remove default for
postgresql.
(postgresql-service-type): Remove the default value.
* gnu/tests/databases.scm (%postgresql-os): Update accordingly.
* gnu/tests/guix.scm (%guix-data-service-os): Update accordingly.
* gnu/tests/monitoring.scm (%zabbix-os): Update accordingly.
* gnu/tests/web.scm (patchwork-os): Update accordingly.
* doc/guix.texi (PostgreSQL): Update accordingly.
Diffstat (limited to 'gnu/services')
-rw-r--r-- | gnu/services/databases.scm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gnu/services/databases.scm b/gnu/services/databases.scm index 7908a3e0f6..d7b4594b9e 100644 --- a/gnu/services/databases.scm +++ b/gnu/services/databases.scm @@ -147,8 +147,7 @@ host all all ::1/128 md5")) (define-record-type* <postgresql-configuration> postgresql-configuration make-postgresql-configuration postgresql-configuration? - (postgresql postgresql-configuration-postgresql ;<package> - (default postgresql)) + (postgresql postgresql-configuration-postgresql) ;<package> (port postgresql-configuration-port (default 5432)) (locale postgresql-configuration-locale @@ -279,8 +278,7 @@ host all all ::1/128 md5")) (service-extension account-service-type (const %postgresql-accounts)) (service-extension profile-service-type - (compose list postgresql-configuration-postgresql)))) - (default-value (postgresql-configuration)))) + (compose list postgresql-configuration-postgresql)))))) (define-deprecated (postgresql-service #:key (postgresql postgresql) (port 5432) |