Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i6f2Q-0008DY-5t for pgsql-general@arkaria.postgresql.org; Sat, 07 Sep 2019 18:02:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i6f2O-0003TY-Vm for pgsql-general@arkaria.postgresql.org; Sat, 07 Sep 2019 18:02:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i6f2M-00036Q-UW for pgsql-general@lists.postgresql.org; Sat, 07 Sep 2019 18:02:16 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i6f2J-0002LD-MP for pgsql-general@lists.postgresql.org; Sat, 07 Sep 2019 18:02:13 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 7009820222; Sat, 7 Sep 2019 14:02:10 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sat, 07 Sep 2019 14:02:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=m Bxw5QHosQwIcO1gg/lWrKt8mkQnAqtsCtlufd4s0FU=; b=KFFjbGSgQgXakCTyL TOE539xs3oBdbrkQPAKekYHnMbt4q2JYWmpS1CQTrEi0vV4nOoDfq6SK5hmDwgs4 NUZlwVV9gEPUMs9cB3ryyPOoI63oywMQ1soUaAr25YNoM5zr54R0o9BWX6tQXwr8 S0JC1TpQNcjYlNBOIm/Ct8/gUha/NMKxxq7qP/W0ZDsyHcEIJhDFLqRftqpZlNY8 jtqb5+xsItBlIihSlReokS3AFT4iIzitKRg7vJ7K7jQmA+HNm4Sq6bTCVHacvwzb ydrVpFxSS1HbFMfJ2vOGnaUwHyyOUU2lMjMsES1xiGLZXKZCdTe7PNwHsM+Ze0km gvu7w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=mBxw5QHosQwIcO1gg/lWrKt8mkQnAqtsCtlufd4s0 FU=; b=jW0Cbud0PsBQ3QjqOaOWTsl74ES13pBUVNinsv4KhoQle6wlwXQrw0u21 kpq4wvcG3x4H3fHyFyq+w/wdffz41s6DnKr9RbT225nC6gCevCcAycCxXpLnUQzm 8HKwpQARLPXCyr9Zn3RGWc7wgkiCX+frmQaOQYuYgCPAYiJwcAsOPM3j3cT3mkE/ ISCN+EYNIw36z+vyAOxydBNOh2yjarHpdz94baabbTHavIF3DwjVIfTFLR8znNUb ZkX+NCc+lGBJ7kC6a9iWdv5EfMV8dDBmXO0uAs1dLjZC9JggMXUghZ/c0LV2ZJKV GW+jUoUOrmYWB0meFF2+oWrAbUqkQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudekuddguddulecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecukfhppeejuddrvdduvddrudehtddrvddtvdenucfrrghrrghmpehmrghilhhf rhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhush htvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id B0A85D60057; Sat, 7 Sep 2019 14:02:08 -0400 (EDT) Subject: Re: Environment Variable for --data-checksum during initdb To: Ray Cote , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: Date: Sat, 7 Sep 2019 11:02:07 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/7/19 5:32 AM, Ray Cote wrote: > On Thu, Sep 5, 2019 at 3:25 PM Ray Cote > > 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