From patchwork Wed Nov 13 09:19:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 70339 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id EAE3027BBE2; Wed, 13 Nov 2024 09:20:15 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6A03027BBE2 for ; Wed, 13 Nov 2024 09:20:15 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tB9Xg-0007zz-27; Wed, 13 Nov 2024 04:20:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tB9Xe-0007zE-Ly for guix-patches@gnu.org; Wed, 13 Nov 2024 04:20:02 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tB9Xe-0002Lx-Cr for guix-patches@gnu.org; Wed, 13 Nov 2024 04:20:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=4BGtR92qdI98KbFXZhs/nzR5Jiv0U+gh4JnYzCuDqTo=; b=dmCt/OUUNx6/yAyPSv8BF0oOG/5wdJW9CMD+Z5cx3x9uLb59VNvyTPYbTk4V//Tf5YThJ1E6M1kb3kTi0cdMGYRWVSj2Z3OFinFv6VZpV7ZJGMcgK8CMFO5ZZelzcCfVpldwJ3X7DgIFH12ZCGijiTgrAUhAYnbvKr+t+L+VoBYylXv3tDbTG0BMuLo8dFlHCX/HM/vo8j67P16lqzAu9PyTEI+mCUUvkukoY8NFCuP1b3JaZH3vcECz1VUettmphR7h1tePyL76Dy/mZl5iQX8V2cvNd8tMu+Cl1MbcbmJoQ5IvOnT32P2TC+3yMZl3RW7P74Ix6QstPNmbQBVU6g==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tB9Xe-0004SX-6U for guix-patches@gnu.org; Wed, 13 Nov 2024 04:20:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74058] [PATCH v6 1/2] gnu: postgresql-configuration: Unset default postgresql. References: <20241028105741.12834-1-ngraves@ngraves.fr> In-Reply-To: <20241028105741.12834-1-ngraves@ngraves.fr> Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 13 Nov 2024 09:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74058 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74058@debbugs.gnu.org Cc: Nicolas Graves Received: via spool by 74058-submit@debbugs.gnu.org id=B74058.173148958317092 (code B ref 74058); Wed, 13 Nov 2024 09:20:02 +0000 Received: (at 74058) by debbugs.gnu.org; 13 Nov 2024 09:19:43 +0000 Received: from localhost ([127.0.0.1]:40746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tB9XL-0004Rb-CX for submit@debbugs.gnu.org; Wed, 13 Nov 2024 04:19:43 -0500 Received: from 13.mo581.mail-out.ovh.net ([87.98.150.175]:39811) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tB9XH-0004RP-UA for 74058@debbugs.gnu.org; Wed, 13 Nov 2024 04:19:41 -0500 Received: from director5.ghost.mail-out.ovh.net (unknown [10.109.148.20]) by mo581.mail-out.ovh.net (Postfix) with ESMTP id 4XpHmV1WGDz1CnK for <74058@debbugs.gnu.org>; Wed, 13 Nov 2024 09:19:38 +0000 (UTC) Received: from ghost-submission-5b5ff79f4f-7h94n (unknown [10.110.96.204]) by director5.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 7E9E81FEB3; Wed, 13 Nov 2024 09:19:37 +0000 (UTC) Received: from ngraves.fr ([37.59.142.99]) by ghost-submission-5b5ff79f4f-7h94n with ESMTPSA id trx8BylvNGdNKgAAI/RyFg (envelope-from ); Wed, 13 Nov 2024 09:19:37 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-99G00304db4c2e-9bc2-46c7-aa3c-1f5cb58c5c15, E46EE4CFA6AA1EB3B0ED220F39F6A53F8FAC1481) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 90.92.117.144 Date: Wed, 13 Nov 2024 10:19:16 +0100 Message-ID: <20241113091922.25376-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-Ovh-Tracer-Id: 8009933414455239394 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeefuddrvddtgddtvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeekffegteffgfffjeegjedvfffgtddvueeutefgfeeuvdejgedvgeejjeevueeuveenucfkphepuddvjedrtddrtddruddpledtrdelvddruddujedrudeggedpfeejrdehledrudegvddrleelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeejgedtheekseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehkedumgdpmhhouggvpehsmhhtphhouhht DKIM-Signature: a=rsa-sha256; bh=4BGtR92qdI98KbFXZhs/nzR5Jiv0U+gh4JnYzCuDqTo=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1731489578; v=1; b=5tEChkLubmgVrOJEyQfbMt/bkdm79VWVmL0S9ZRLfkSbMGdIqkEBC4XxXq9Gbu++aNI3SIo2 XTCEdH2oYSMGxTwn8SFpI5lZAvEe4tMAi7Filr4xKdfGTONlnQiPF67ksSqkxr+n5Hg2rEOE06m pS+O7bqPVhfLgkGfwPwc/GqGIKO2wmz1f05jE5RKkubUnOS3GKQcq5ZgNptgGsNknZE1rG7y4qq vi4DzR8sW+cMCGecbh79nnHKr5Nh3uyO9d1DReP16+mhK1+66SkN2bA/kNJN6WgoB7kOwx4NHHn 1+K3egqQ4LV8ekQVsN60v6My0Be+ToZB8Mg1Znjiz+tBA== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches X-Patchwork-Original-From: Nicolas Graves via Guix-patches via From: Nicolas Graves Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/services/databases.scm (postgresql-configuration)[postgresql]: Unset default. (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). --- gnu/services/databases.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gnu/services/databases.scm b/gnu/services/databases.scm index 0933eb5e79..001f96830e 100644 --- a/gnu/services/databases.scm +++ b/gnu/services/databases.scm @@ -167,8 +167,11 @@ (define contents (define-record-type* 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 @@ -346,7 +349,7 @@ (define postgresql-service-type (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))