From patchwork Sat Nov 9 22:23:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 70165 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 B545427BBE2; Sat, 9 Nov 2024 22:24:32 +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=unavailable 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 F41E127BBEA for ; Sat, 9 Nov 2024 22:24:30 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9tsD-0000oD-Hz; Sat, 09 Nov 2024 17:24: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 1t9tsB-0000nu-5v for guix-patches@gnu.org; Sat, 09 Nov 2024 17:24: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 1t9tsA-0001wx-TD for guix-patches@gnu.org; Sat, 09 Nov 2024 17:24: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=32KFITK/8yxrApGcEbFuYWy1u4dPYlM+r6xWmyMcKcc=; b=BIeXCDfDXn4WaZdTwHFeb1tQSdgA6/nnv6g2u02FHeGNeWsfsoB0yqfpi3y1jQpFirL4w3tvqwl1ZBis7OpoCfVdjzlM/MpbYcHZ2WalG99bYfuayzaTI75kfOazxLDDwmPRWeNJjbpSH+E5I32H+8Bu4U0AzChsRiYRs9BUe2mdK2bGJMkbmN4sxNdTtRcZhQuRFo5n5iliHvwePESfYJK5VOFPZFWhVLwL/n8fUNWdM4Y3qZ17lPCpoLhOHyjNf3EQwHXcV22znMu4LId1ZW32HniDx6dz753tm6GMEEDmaYzkHj8ZXT/5qSYzQ5HFDTRN0+sISV0aK3YNNuYItg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t9ts9-0002mQ-Q3 for guix-patches@gnu.org; Sat, 09 Nov 2024 17:24:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74058] [PATCH v4 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: Sat, 09 Nov 2024 22:24:01 +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.173119103710670 (code B ref 74058); Sat, 09 Nov 2024 22:24:01 +0000 Received: (at 74058) by debbugs.gnu.org; 9 Nov 2024 22:23:57 +0000 Received: from localhost ([127.0.0.1]:54755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t9ts5-0002m0-Br for submit@debbugs.gnu.org; Sat, 09 Nov 2024 17:23:57 -0500 Received: from 15.mo584.mail-out.ovh.net ([91.121.62.11]:56613) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t9ts0-0002lh-Uw for 74058@debbugs.gnu.org; Sat, 09 Nov 2024 17:23:55 -0500 Received: from director11.ghost.mail-out.ovh.net (unknown [10.109.140.75]) by mo584.mail-out.ovh.net (Postfix) with ESMTP id 4Xm9MC396Lz1LJk for <74058@debbugs.gnu.org>; Sat, 9 Nov 2024 22:23:51 +0000 (UTC) Received: from ghost-submission-5b5ff79f4f-lpfn6 (unknown [10.110.96.185]) by director11.ghost.mail-out.ovh.net (Postfix) with ESMTPS id BC0A21FEA9; Sat, 9 Nov 2024 22:23:50 +0000 (UTC) Received: from ngraves.fr ([37.59.142.101]) by ghost-submission-5b5ff79f4f-lpfn6 with ESMTPSA id zjRPHfbgL2e1LQAAYM1KBw (envelope-from ); Sat, 09 Nov 2024 22:23:50 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-101G00410ac3748-72d8-4c08-9503-bddca3952f29, 4106C6A41C0FD9D2FFAF9DE435E3143907C498F8) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 90.92.117.144 Date: Sat, 9 Nov 2024 23:23:34 +0100 Message-ID: <20241109222341.18811-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-Ovh-Tracer-Id: 16210425387683341026 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeefuddrtdekgdduiedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepkeffgeetfffgffejgeejvdffgfdtvdeuueetgfefuedvjeegvdegjeejveeuueevnecukfhppeduvdejrddtrddtrddupdeltddrledvrdduudejrddugeegpdefjedrheelrddugedvrddutddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeejgedtheekseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehkeegmgdpmhhouggvpehsmhhtphhouhht DKIM-Signature: a=rsa-sha256; bh=32KFITK/8yxrApGcEbFuYWy1u4dPYlM+r6xWmyMcKcc=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1731191031; v=1; b=bsmiqxpEQpDTOX8TmkNXupd65sDdXYBAzU7uowQmIplXz8e4/dMuyyak7ciLvtpYKxPmm2Ug ENolwAvvWiJ5Vccq1mU8svEWQNZwtVRjEHDeQok8le4Ng4V1YL8FlDgLIkyMp4N4zNiNLzKhsGB T8bSGVdMm1D/kleXa+o8i0mLWhoRv1beYOFVKXU4wych0/lEonQXp1FkhyJn1HyhMzpEo0bRRdz HsQ8RRqt/bxK2ezL2NxfyBmi7o1OUMoRgnMJTcPQrFnhuYGBRy6sbeM6EDRtOePqaCE7pQB9YC8 3hpZMgiISwGt4+CuCRTStfLHmbDB2yqQ1xGSS6JzLuDlw== 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))