~ruther/guix-local

b93434e656eba4260df82158a96c295000d3ff44 — Nicolas Graves via Guix-patches via 1 year, 11 months ago b647d3a
gnu: postgresql-configuration: Unset default postgresql.

* gnu/services/databases.scm (postgresql-configuration)[postgresql]:
Unset default.
(postgresql-service-type): Remove default-value.
(postgresql-service): Revert default to postgresql-10 (rationale: We
can remove this service at the same time than postgresql-10, in
something like 6 months to a year).
* doc/guix.texi: Remove postgresql default reference in documentation.

Signed-off-by: Florian Pelz <pelzflorian@pelzflorian.de>
2 files changed, 7 insertions(+), 5 deletions(-)

M doc/guix.texi
M gnu/services/databases.scm
M doc/guix.texi => doc/guix.texi +1 -1
@@ 26247,7 26247,7 @@ Data type representing the configuration for the
@code{postgresql-service-type}.

@table @asis
@item @code{postgresql} (default: @code{postgresql})
@item @code{postgresql}
PostgreSQL package to use for the service.

@item @code{port} (default: @code{5432})

M gnu/services/databases.scm => gnu/services/databases.scm +6 -4
@@ 167,8 167,11 @@ host	all	all	::1/128 	md5"))
(define-record-type* <postgresql-configuration>
  postgresql-configuration make-postgresql-configuration
  postgresql-configuration?
  (postgresql         postgresql-configuration-postgresql ;file-like
                      (default postgresql))
  ;; Setting no default ensures that the user sets its current postgresql
  ;; explicitely.  Since major upgrades currently require a manual migration
  ;; of the database, this way the user is responsible for upgrading properly.
  ;; MAYBE TODO: Write an action to automatically upgrade in Guix.
  (postgresql         postgresql-configuration-postgresql) ;file-like
  (port               postgresql-configuration-port
                      (default 5432))
  (locale             postgresql-configuration-locale


@@ 343,10 346,9 @@ host	all	all	::1/128 	md5"))
          (service-extension
           profile-service-type
           (compose list postgresql-configuration-postgresql))))
   (default-value (postgresql-configuration))
   (description "Run the PostgreSQL database server.")))

(define-deprecated (postgresql-service #:key (postgresql postgresql)
(define-deprecated (postgresql-service #:key (postgresql postgresql-10)
                                       (port 5432)
                                       (locale "en_US.utf8")
                                       (config-file (postgresql-config-file))