From patchwork Thu Nov 7 17:09:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 70052 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 9BC6527BBEA; Thu, 7 Nov 2024 17:11:25 +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 5748027BBE2 for ; Thu, 7 Nov 2024 17:11:24 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t962D-0003cU-9f; Thu, 07 Nov 2024 12:11:05 -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 1t962C-0003cJ-3n for guix-patches@gnu.org; Thu, 07 Nov 2024 12:11:04 -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 1t962B-0002Td-Nl for guix-patches@gnu.org; Thu, 07 Nov 2024 12:11:03 -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=32KFITK/8yxrApGcEbFuYWy1u4dPYlM+r6xWmyMcKcc=; b=MWEFYhs9rAUHdywqy/NqZR9C22djesJdVRmVuOHqfeSuxVC7Zr3KQoASvDglWUdukvT7HU6Z6WHliraBw13R6dfNXbnBBLTUVA5/DYJgGOjqQUk9E0yI4C0cAxTbTFd0DtXsb0ygkG9hRS0v4UkUdNWuq027kzyaBHAQX5Wm4sFkdGbItNLS9Xi+QIWnnGKSYePqfZpnIQPN1OMt9LVqYz+9YXFuxeAH3GXw6nndtZmGVWzCI8Ylt2PxY3LxAPSeJ2sWV95I0IYaK4Fc0zH48A4m6CUM+feHFy5QqyElAmeponP510Dlt+vLPvY6dIJDKwl9N4PfbryRVptMs/Ct8w==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t962B-0001Ja-AK for guix-patches@gnu.org; Thu, 07 Nov 2024 12:11:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74058] [PATCH v3 1/2] gnu: postgresql-configuration: Set default postgresql to *no*. 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: Thu, 07 Nov 2024 17:11:03 +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.17309994174834 (code B ref 74058); Thu, 07 Nov 2024 17:11:03 +0000 Received: (at 74058) by debbugs.gnu.org; 7 Nov 2024 17:10:17 +0000 Received: from localhost ([127.0.0.1]:49427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t961Q-0001Fj-VG for submit@debbugs.gnu.org; Thu, 07 Nov 2024 12:10:17 -0500 Received: from 12.mo582.mail-out.ovh.net ([178.32.125.228]:53913) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t961M-0001Bx-9G for 74058@debbugs.gnu.org; Thu, 07 Nov 2024 12:10:15 -0500 Received: from director1.ghost.mail-out.ovh.net (unknown [10.108.25.169]) by mo582.mail-out.ovh.net (Postfix) with ESMTP id 4XkpVB44Fjz1SLD for <74058@debbugs.gnu.org>; Thu, 7 Nov 2024 17:10:10 +0000 (UTC) Received: from ghost-submission-5b5ff79f4f-jfdqd (unknown [10.110.188.136]) by director1.ghost.mail-out.ovh.net (Postfix) with ESMTPS id ECE281FD41; Thu, 7 Nov 2024 17:10:09 +0000 (UTC) Received: from ngraves.fr ([37.59.142.101]) by ghost-submission-5b5ff79f4f-jfdqd with ESMTPSA id SFRyF3H0LGeiRwEANhF84w (envelope-from ); Thu, 07 Nov 2024 17:10:09 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-101G0044666dbfa-f666-4d9a-97ba-1fa34c766931, 2B264539C56665297410E0ABC0C486ED03F6DD63) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 80.215.103.88 Date: Thu, 7 Nov 2024 18:09:59 +0100 Message-ID: <20241107171006.14868-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-Ovh-Tracer-Id: 17614141093378384610 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeefuddrtdeggdeliecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeekffegteffgfffjeegjedvfffgtddvueeutefgfeeuvdejgedvgeejjeevueeuveenucfkphepuddvjedrtddrtddruddpkedtrddvudehrddutdefrdekkedpfeejrdehledrudegvddruddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepjeegtdehkeesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheekvdgmpdhmohguvgepshhmthhpohhuth DKIM-Signature: a=rsa-sha256; bh=32KFITK/8yxrApGcEbFuYWy1u4dPYlM+r6xWmyMcKcc=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1730999410; v=1; b=C1e5F0ryHxdzmMtn96gAW3vjaAcemJPJ8f2i8EWZdqMjJO5+872LpPmRnczrQI/diFrjCoUr oTqDj2xraVHSAqP1RzoZHmFho/7KJm5iFRqA/q26HjfLb/69GaLX+B4g9pJ0f7sc/ZYFmhMNqLN rvk6MC9e0nmRfiqEVWM68FFFYw9NZfCet4Gld4aFxF43kjm9dzzCVfv1SHRtLbdv6A2wbEDHDoA WmPnFMz0jQez92XihslZbvMWOdlvPMLCVuIW1G+oZkuRW/2tCJLdSl/PwuslmItUyZE6k9NzS5M 7LmRWzLCDvr/XRSR6pQ7DolKgvrA6eCGKopTVszu6y/7g== 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]: Set default to *no*. (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 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gnu/services/databases.scm b/gnu/services/databases.scm index 0933eb5e79..c499356c3a 100644 --- a/gnu/services/databases.scm +++ b/gnu/services/databases.scm @@ -167,8 +167,12 @@ (define contents (define-record-type* postgresql-configuration make-postgresql-configuration postgresql-configuration? + ;; Setting it to '*no* 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 - (default postgresql)) + (default '*no*)) (port postgresql-configuration-port (default 5432)) (locale postgresql-configuration-locale @@ -346,7 +350,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))