all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: 07/19: services: postgresql: Add default package.
Date: Thu, 04 May 2023 09:11:07 +0100	[thread overview]
Message-ID: <87a5yko6d2.fsf@cbaines.net> (raw)
In-Reply-To: <87y1m5w2ox.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2278 bytes --]


Ludovic Courtès <ludo@gnu.org> writes:

> Christopher Baines <mail@cbaines.net> skribis:
>
>> guix-commits@gnu.org writes:
>>
>>> civodul pushed a commit to branch master
>>> in repository guix.
>>>
>>> commit e45306c1982aee194243cf661295c7ca776d879f
>>> Author: Ludovic Courtès <ludo@gnu.org>
>>> AuthorDate: Thu Apr 20 10:38:37 2023 +0200
>>>
>>>     services: postgresql: Add default package.
>>>     
>>>     * gnu/services/databases.scm (<postgresql-configuration>)[postgresql]:
>>>     Add default value, moved from...
>>>     (postgresql-service-type)[default-value]: ... here.
>>> ---
>>>  gnu/services/databases.scm | 6 +++---
>>>  1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> The default was removed a few years ago [1] and I don't think there's
>> been a significant change (like supporting automatic upgrading existing
>> databases between versions) in the service since then.
>>
>> 1: https://git.savannah.gnu.org/cgit/guix.git/commit/?id=bdcf4d88d58798eca7811c8b1fbd4638168d05c3
>
> Oh, my bad.  I found it weird that the default value would be found in
> the service and not in the configuration object.  The result is that
> there is a default value, just not where you’d expect it.
>
> But yeah, I understand the rationale of the commit above, so we should
> probably revert to that and add a comment explaining why there’s no
> default.
>
> I wonder how we can make sure that users can still write (say):
>
>   (service cuirass-service-type)
>
> without having to explicitly specify which postgresql version they want
> to use.
>
> WDYT?

Yeah, we're just moving the problem of matching up the PostgreSQL
software and data at the moment, but I think it's still preferable to
make the problem clear in the configuration and when reconfiguring
rather than delaying things to when the service doesn't start.

It would be good to at least have some Guix specific documentation on
how to migrate from one PostgreSQL version to another, and ideally this
could be integrated in to the service somehow. That's the blocking issue
to providing defaults here, we're just setting the user up for the
service not starting at some point in the future when we change the
default version of PostgreSQL.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

  reply	other threads:[~2023-05-04  8:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <168209016695.26329.16329467815416207575@vcs2.savannah.gnu.org>
     [not found] ` <20230421151609.305BAC13A94@vcs2.savannah.gnu.org>
2023-04-21 16:31   ` 07/19: services: postgresql: Add default package Christopher Baines
2023-05-03 21:00     ` Ludovic Courtès
2023-05-04  8:11       ` Christopher Baines [this message]
2023-05-07 21:22         ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a5yko6d2.fsf@cbaines.net \
    --to=mail@cbaines.net \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.