pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Ray Cote <rgacote@appropriatesolutions.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Environment Variable for --data-checksum during initdb
Date: Sat, 7 Sep 2019 11:02:07 -0700
Message-ID: <aaf5ba1a-9e18-9c96-45fa-cc10480013e1@aklaver.com> (raw)
In-Reply-To: <CAG5tnzp-dHu+OwZPN68AM3KDz6g5vc4JV1sBwtTxg4riDeoRGA@mail.gmail.com>
References: <CAG5tnzovKTXeqaW3p5qJ7cY3N51SQOKr=yuDBF33vEDbbOzk3A@mail.gmail.com>
	<CAG5tnzp-dHu+OwZPN68AM3KDz6g5vc4JV1sBwtTxg4riDeoRGA@mail.gmail.com>

On 9/7/19 5:32 AM, Ray Cote wrote:
> On Thu, Sep 5, 2019 at 3:25 PM Ray Cote 
> <rgacote@appropriatesolutions.com 
> <mailto:rgacote@appropriatesolutions.com>> wrote:
>  >
>  > I'm trying to remember what environment variable can be set 
> --data-checksum before running postgresql-setup initdb. I know I've seen 
> it but it escapes my recall at the moment.
>  >
>  > The PostgreSQL documentation has a nice page of environment variables 
> for when PostgreSQL is running, but I'm not finding the variable to set 
> during the initdb phase.
>  >
>  > Any help to jog my memory greatly appreciated.
>  > --Ray
> 
> 
> Found my answer:
> There are three variables you can set, one for init, one for upgrading, 
> and one for debug messaging.
> These can be set when calling postgresql-nn-setup.
> No documentation regarding these in the PostgreSQL documentation.
> I'm assuming this feature is part of the RHEL/CentOS deploy configuration.

I believe so as there is no mention of the below in the Postgres source.

> 
> Environment:
>    PGSETUP_INITDB_OPTIONS     Options carried by this variable are passed to
>                               subsequent call of `initdb` binary (see man
>                               initdb(1)).  This variable is used also during
>                               'upgrade' mode because the new cluster is 
> actually
>                               re-initialized from the old one.
>    PGSETUP_PGUPGRADE_OPTIONS  Options in this variable are passed next 
> to the
>                               subsequent call of `pg_upgrade`.  For more 
> info
>                               about possible options please look at man
>                               pg_upgrade(1).
>    PGSETUP_DEBUG              Set to '1' if you want to see debugging 
> output.


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (4+ messages)

Message-ID: <aaf5ba1a-9e18-9c96-45fa-cc10480013e1@aklaver.com>
Permalink:  ../aaf5ba1a-9e18-9c96-45fa-cc10480013e1@aklaver.com/
Also on:    postgresql.org/message-id/aaf5ba1a-9e18-9c96-45fa-cc10480013e1@aklaver.com

 · 

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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, rgacote@appropriatesolutions.com
  Subject: Re: Environment Variable for --data-checksum during initdb
  In-Reply-To: <aaf5ba1a-9e18-9c96-45fa-cc10480013e1@aklaver.com>
  References: <CAG5tnzovKTXeqaW3p5qJ7cY3N51SQOKr=yuDBF33vEDbbOzk3A@mail.gmail.com> <CAG5tnzp-dHu+OwZPN68AM3KDz6g5vc4JV1sBwtTxg4riDeoRGA@mail.gmail.com> <aaf5ba1a-9e18-9c96-45fa-cc10480013e1@aklaver.com>

* 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