From patchwork Fri Nov 15 11:03:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 70422 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 D30EB27BBEA; Fri, 15 Nov 2024 11:05: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 6124927BBE2 for ; Fri, 15 Nov 2024 11:05:25 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBu8P-0007Us-8K; Fri, 15 Nov 2024 06:05: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 1tBu8M-0007Qb-TX for guix-patches@gnu.org; Fri, 15 Nov 2024 06:05:03 -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 1tBu8M-0003VE-HK for guix-patches@gnu.org; Fri, 15 Nov 2024 06:05: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=ky+dC53uOxyDxNmcuffeewLwKL734NvTKI894vZAkoI=; b=U0jCpylLqhm8WTHlRfLxhhZ7kwIduQRmHhoRdg6MX8KOGaFXp8/Ii5MLBVBPg+/J8BMT5IJ/9kVlZGyLymr6tG+RgKb7sdRPZ5r8pofVAUzMuuEtxhXznrWxhf8sCKssc7raMvWRkB3bqDRBwuvOfBpHUJA9CIGcz3GXSQtAdF/6oEAIoBprZYnExevSAuNEgoAzQlddfEV7n0+4/fh97oT+SPd/wAAOlS/6lTt6Z4YgyfQlCpGRGHP/a7cPRQIV7Mdtmbo5iVZkHvMnXW91Vf/FOvHrNr7M7gqgtSEEQFUysRxzy+aHZM154QeTTJRAszFuQPsKrEd4RerzdUHeaQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tBu8M-00079f-BG for guix-patches@gnu.org; Fri, 15 Nov 2024 06:05:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74058] [PATCH v7 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: Fri, 15 Nov 2024 11:05: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.173166864227409 (code B ref 74058); Fri, 15 Nov 2024 11:05:02 +0000 Received: (at 74058) by debbugs.gnu.org; 15 Nov 2024 11:04:02 +0000 Received: from localhost ([127.0.0.1]:48770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBu7N-00077u-A4 for submit@debbugs.gnu.org; Fri, 15 Nov 2024 06:04:01 -0500 Received: from 15.mo582.mail-out.ovh.net ([188.165.39.161]:37965) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBu7I-00077e-7V for 74058@debbugs.gnu.org; Fri, 15 Nov 2024 06:03:59 -0500 Received: from director9.ghost.mail-out.ovh.net (unknown [10.109.148.22]) by mo582.mail-out.ovh.net (Postfix) with ESMTP id 4XqYzt2FQyz1PlB for <74058@debbugs.gnu.org>; Fri, 15 Nov 2024 11:03:54 +0000 (UTC) Received: from ghost-submission-5b5ff79f4f-6frr4 (unknown [10.110.168.204]) by director9.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 0D22A1FE87; Fri, 15 Nov 2024 11:03:54 +0000 (UTC) Received: from ngraves.fr ([37.59.142.97]) by ghost-submission-5b5ff79f4f-6frr4 with ESMTPSA id Ueq2M5kqN2dWYAAA6qdP+g (envelope-from ); Fri, 15 Nov 2024 11:03:54 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-97G0024f2f1bef-9120-4620-a29b-f8c349946b6d, A9B0FEDC47A92FBCA31F4C8415503AD514F50C82) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 90.92.117.144 Date: Fri, 15 Nov 2024 12:03:47 +0100 Message-ID: <20241115110352.14249-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-Ovh-Tracer-Id: 3069766099643392738 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeefuddrvdeggddvvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeekffegteffgfffjeegjedvfffgtddvueeutefgfeeuvdejgedvgeejjeevueeuveenucfkphepuddvjedrtddrtddruddpledtrdelvddruddujedrudeggedpfeejrdehledrudegvddrleejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeejgedtheekseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehkedvmgdpmhhouggvpehsmhhtphhouhht DKIM-Signature: a=rsa-sha256; bh=ky+dC53uOxyDxNmcuffeewLwKL734NvTKI894vZAkoI=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1731668634; v=1; b=bTvAipsA/X3sjKheNYHA31k2IO5MhweML7dPPsuj1h129gIsHoImXXq3sLKOJdVCBaEuYZ9l jED3lLGQgByvBNYQXaQKTRi0Qa/JkUSC6CJx2VotH8JyDG4K8t3YPvuKC/hAkih6SbGwz+60jPB FbcG3xTRh5rNHlsEDqm0cg8qfRWDD7U2ZtvBLp5YOAe6oorowffrWTWISLq5twGmPa8OsCZStZO rVNh9X35aWCuR8dL5eVQFgzx1Adz92cQiksSKE2QXQ7SiKI81SOEW9ak5tUxR1BBLicK203rMbx otJjhUQYpXGyvsT/L76qlEhdElhaRaJzbEnSsvFGJyAZw== 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). * doc/guix.texi: Remove postgresql default reference in documentation. --- doc/guix.texi | 2 +- gnu/services/databases.scm | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 2ab78d6237..ba4bd2cc79 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -26247,7 +26247,7 @@ Data type representing the configuration for the @code{postgresql-service-type}. @table @asis -@item @code{postgresql} (default: @code{postgresql}) +@item @code{postgresql} PostgreSQL package to use for the service. @item @code{port} (default: @code{5432}) 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))