mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00: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
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue