pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: jhebert@micron.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17469: postgresql-11.service file not configured to match setup/initdb options specified
Date: Thu, 28 Apr 2022 20:02:17 -0400
Message-ID: <228299.1651190537@sss.pgh.pa.us> (raw)
In-Reply-To: <17469-b677bc5397f04366@postgresql.org>
References: <17469-b677bc5397f04366@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> writes:
> After researching further, I reviewed file
> /usr/lib/systemd/system/postgresql-11.service
> and found the following offending line:
> Environment=PGDATA=/var/lib/pgsql/11/data/
> Which should have been set to /postgres/data/datafiles based in the option
> provided to the initdb command.

Hmm.  initdb knows nothing about systemd unit files, and would not
have the permissions to modify them even if it did know, since it
doesn't run as root.

> If this is not considered a bug, please consider addressing this as an
> enhancement.

This isn't really a matter for the core Postgres distribution, because not
one of the files you mention is part of the core Postgres distribution.
You could take it up with whoever produces the package you are using.

My guess is that the packager will say that manual invocation of initdb
isn't the right way in their package and you should use some wrapper
script instead --- in which case you could move on to why the wrapper
script isn't adequately documented or how it lacks some functionality
you need.  But this list isn't well positioned to help you.

			regards, tom lane





view thread (6+ messages)  latest in thread

Message-ID: <228299.1651190537@sss.pgh.pa.us>
Permalink:  ../228299.1651190537@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/228299.1651190537@sss.pgh.pa.us

 · 

reply

Reply instructions:

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

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jhebert@micron.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #17469: postgresql-11.service file not configured to match setup/initdb options specified
  In-Reply-To: <228299.1651190537@sss.pgh.pa.us>

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

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox