all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Martin Baulig <martin@baulig.is>
To: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Cc: "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Re: Postgres user UID and GID
Date: Mon, 17 Jul 2023 21:35:00 +0000	[thread overview]
Message-ID: <GTYPh6TIlJ1wfF6-o8C_yOXb82uGTiFDL1DhOmqfj02iLhQ7DIe6iLdTP9DHPKyL_FtF8FLFgVpwovskc1tvpj_PkRDDXPDroWHWz1VQw_w=@baulig.is> (raw)
In-Reply-To: <20230717214920.32382c6b@primary_laptop>

Hello,

------- Original Message -------
On Monday, July 17th, 2023 at 7:49 PM, Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> wrote:


> And for the record here's how I use a different architecture: I define
> a package:
> 
> > (define postgresql-14-i686-linux
> > (package
> > (inherit postgresql-14)
> > (name "postgresql-14-i686-linux")
> > (arguments
> > (ensure-keyword-arguments
> > (package-arguments postgresql-14)
> > '(#:system "i686-linux")))))
> 
> 
> And then use it in the PostgreSQL service:
> 
> > (service
> > postgresql-service-type
> > (postgresql-configuration
> > (postgresql
> > (if (target-x86-64?)
> > postgresql-14-i686-linux
> > postgresql-14))
> > [...]))
> 
> 
> The downside is that it prints a warning during boot if I recall
> well but it works fine.
> 
> I'm unsure if that helps the conversation or not though as you might
> want something cleaner.

This is quite similar to what I have at the moment; I copied gnu/services/databases.scm locally and removed the account creation from it.  That works fine, but instead of maintaining my own copy of that file, I'd rather submit a patch to have this done nicely in the upstream version.

If I use the unmodified service and with the (operating-system (user ...)) entry, it works sometimes, but not reliably due to having two conflicting entries for the 'postgres' user.

Best regards,

Martin


  reply	other threads:[~2023-07-17 21:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-17 18:06 Postgres user UID and GID Martin Baulig
2023-07-17 19:49 ` Denis 'GNUtoo' Carikli
2023-07-17 21:35   ` Martin Baulig [this message]
2023-07-18 22:10     ` Denis 'GNUtoo' Carikli
2023-07-19 14:35       ` Martin Baulig
2023-07-17 20:23 ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
2023-07-17 21:28   ` Martin Baulig

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='GTYPh6TIlJ1wfF6-o8C_yOXb82uGTiFDL1DhOmqfj02iLhQ7DIe6iLdTP9DHPKyL_FtF8FLFgVpwovskc1tvpj_PkRDDXPDroWHWz1VQw_w=@baulig.is' \
    --to=martin@baulig.is \
    --cc=GNUtoo@cyberdimension.org \
    --cc=guix-devel@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.