Subject: Re: [bug#77413] [PATCH] services: postgresql-service-type: Allow allowing to log into the user.

From: Ludovic Courtès <[email-masked]>
Date: Tue, 01 Apr 2025 14:28:44 +0200

Tomas Volf <[email-masked]> skribis:

> It is often useful to be able to use the `postgres' user for management tasks,
> so this commit allows setting that.  The default behavior is not changed.
>
> I have also added missing exports and sorted them by alphabet.
>
> * gnu/services/databases.scm (%default-home-directory): New variable.
> (<postgresql-configuration>): Add home-directory, allow-login? fields.
> (create-postgresql-account): Use them.
> * doc/guix.texi (Database Services): Document it.
>
> Change-Id: I2212e5082ff4e87c49a5a8a4711bf929dd08626a

Hi!  I’m rather against this change, because it’s unnecessary.  Let me
share a protip:

  sudo su - cuirass -s /bin/sh -c $(type -P psql)

(From
<https://git.savannah.gnu.org/cgit/guix/maintenance.git/tree/doc/cuirass.org#n118>.)

Ludo’.