mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-18 21:46:35 +01:00
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>
This commit is contained in:
parent
b647d3a149
commit
b93434e656
2 changed files with 7 additions and 5 deletions
|
@ -26247,7 +26247,7 @@ Data type representing the configuration for the
|
||||||
@code{postgresql-service-type}.
|
@code{postgresql-service-type}.
|
||||||
|
|
||||||
@table @asis
|
@table @asis
|
||||||
@item @code{postgresql} (default: @code{postgresql})
|
@item @code{postgresql}
|
||||||
PostgreSQL package to use for the service.
|
PostgreSQL package to use for the service.
|
||||||
|
|
||||||
@item @code{port} (default: @code{5432})
|
@item @code{port} (default: @code{5432})
|
||||||
|
|
|
@ -167,8 +167,11 @@ (define contents
|
||||||
(define-record-type* <postgresql-configuration>
|
(define-record-type* <postgresql-configuration>
|
||||||
postgresql-configuration make-postgresql-configuration
|
postgresql-configuration make-postgresql-configuration
|
||||||
postgresql-configuration?
|
postgresql-configuration?
|
||||||
(postgresql postgresql-configuration-postgresql ;file-like
|
;; Setting no default ensures that the user sets its current postgresql
|
||||||
(default 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
|
(port postgresql-configuration-port
|
||||||
(default 5432))
|
(default 5432))
|
||||||
(locale postgresql-configuration-locale
|
(locale postgresql-configuration-locale
|
||||||
|
@ -343,10 +346,9 @@ (define postgresql-service-type
|
||||||
(service-extension
|
(service-extension
|
||||||
profile-service-type
|
profile-service-type
|
||||||
(compose list postgresql-configuration-postgresql))))
|
(compose list postgresql-configuration-postgresql))))
|
||||||
(default-value (postgresql-configuration))
|
|
||||||
(description "Run the PostgreSQL database server.")))
|
(description "Run the PostgreSQL database server.")))
|
||||||
|
|
||||||
(define-deprecated (postgresql-service #:key (postgresql postgresql)
|
(define-deprecated (postgresql-service #:key (postgresql postgresql-10)
|
||||||
(port 5432)
|
(port 5432)
|
||||||
(locale "en_US.utf8")
|
(locale "en_US.utf8")
|
||||||
(config-file (postgresql-config-file))
|
(config-file (postgresql-config-file))
|
||||||
|
|
Loading…
Reference in a new issue