pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Devrim Gündüz <devrim@gunduz.org>
To: alertas.dba@click-it.es
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15108: Initialization problem postgresql-10-setup initdb
Date: Wed, 14 Mar 2018 15:59:03 +0000
Message-ID: <1521043143.6439.19.camel@gunduz.org> (raw)
In-Reply-To: <152094313655.1225.9005657715834235284@wrigleys.postgresql.org>
References: <152094313655.1225.9005657715834235284@wrigleys.postgresql.org>


Hi,

On Tue, 2018-03-13 at 12:12 +0000, PG Bug reporting form wrote:
> The problem is reported when executing database initialization command,
> postgresql-10-setup initdb.
> In the official documentation
> (https://www.postgresql.org/docs/10/static/app-initdb.html) indicates that
> it must be executed with the user postgres, but the command only works if I
> execute it as root.
> 
> This command does not

postgresql-10-setup is a wrapper around initdb (which solves many problems), 
*not* the initdb binary, and needs to be run as root. You can always run initdb
directly with:

/usr/pgsql-10/bin/initdb

Regards,

-- 
Devrim Gündüz
EnterpriseDB: https://www.enterprisedb.com
PostgreSQL Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (6+ messages)  latest in thread

Message-ID: <1521043143.6439.19.camel@gunduz.org>
Permalink:  ../1521043143.6439.19.camel@gunduz.org/
Also on:    postgresql.org/message-id/1521043143.6439.19.camel@gunduz.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: devrim@gunduz.org, alertas.dba@click-it.es
  Subject: Re: BUG #15108: Initialization problem postgresql-10-setup initdb
  In-Reply-To: <1521043143.6439.19.camel@gunduz.org>
  References: <152094313655.1225.9005657715834235284@wrigleys.postgresql.org> <1521043143.6439.19.camel@gunduz.org>

* 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