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 1gy4gd-0002lx-EZ for pgsql-general@arkaria.postgresql.org; Mon, 25 Feb 2019 01:04:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gy4gc-0004CZ-94 for pgsql-general@arkaria.postgresql.org; Mon, 25 Feb 2019 01:04:02 +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 1gy4gb-0004CS-1r for pgsql-general@lists.postgresql.org; Mon, 25 Feb 2019 01:04:02 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gy4gX-00065t-Pp for pgsql-general@postgresql.org; Mon, 25 Feb 2019 01:03:59 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 80E0D3286; Sun, 24 Feb 2019 20:03:56 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sun, 24 Feb 2019 20:03:56 -0500 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=fm2; bh=0 y7aH30sJiG4UZSL4cphVc0vr757EwGamUswjPxC3+s=; b=Uph3i3lxUQlb5OToi hl17/ftSqzOclEjvPms665U6QGvs5Wm03NeRXDmdOop0eevZ7t3jJtDeVPpDJRZh wsepMh3ZgDg9j/AWjAdqx9qJOWaeLpzGDAzQa/5y2bAvidhTduPEmPN6YHeS3IBf ee/DpxyBcH/xLEB+X9uN7bzeQ+wBuZ9/IxS8F1BxtAHxt1CK8yABPl2JLvuw21vY FaBchh1mHsK4erfFC69mvLEwQu2EuaSQ96uQiroHVHkUuZg1nGKSLshNQ2k8pvVH 6rCJ14ohQmG1ahoQS35EPzN+yH5CL7nSX4WaTqFgRxW1uqNLrOnuraa6IDrEoCJx 54R7w== 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=fm2; bh=0y7aH30sJiG4UZSL4cphVc0vr757EwGamUswjPxC3 +s=; b=grg0lHTWLeu1ncdb3PlVBNuQpn06Jp3P155LSNh4651ouwrLl6ejCE43+ MhxAYc2aXatooJ3V9WPhq6uYGvu2xsllfq8zYS8bG59JpmZsXNHRaFzdKSwZnIsw vbiMX406xb5rEH7WvkIHf4jQfpZOhjZi9Iv5amLHBi6RamNyknhb8XjpYSOykeSj JAbGL4MXUXB7JYISk8jXcRRNfdklnzAPJy1CPaPoPCl7vSqx1TpY18ZnVbMot7JS nGQKwSlhYH9JigrZzvvTXMHxa3TZ/9P3E3RmAmz16WA0iuBQTbBiW2T/PcVvV932 2vv/xN/abz363aSq4e2sALXNz9y+w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrudehgddvjeculddtuddrgedtledrtddtmd cutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgpdgrghgvnhgthidqshho fhhtfigrrhgvrdhorhhgnecukfhppeejuddrvdduvddrudehtddrvddtvdenucfrrghrrg hmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtgho mhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 07EDBE4662; Sun, 24 Feb 2019 20:03:54 -0500 (EST) Subject: Re: Recommended way to enable data-checksums on Centos 7? To: Ken Tanzer , PG-General Mailing List References: From: Adrian Klaver Message-ID: Date: Sun, 24 Feb 2019 17:03:53 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 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 2/24/19 2:39 PM, Ken Tanzer wrote: > Hi.  I recently installed PG 11.2 on Centos 7, following the excellent > directions at . > > I wanted to enable data-checksums.  I at first tried appending > --data-checksums to the doc-specified command: > > /usr/pgsql-11/bin/postgresql-11-setup initdb --data-checksums > > but that did not work.  After a glance at that script, I was able to do > it with: > > export PGSETUP_INITDB_OPTIONS="--data-checksums" > /usr/pgsql-11/bin/postgresql-11-setup initdb > > I'm just wondering if there is a more preferred way to do this, and/or > any particular reason you can't pass options to initdb?  Also, since the You can pass options to initdb: https://www.postgresql.org/docs/11/app-initdb.html It seems you cannot pass them to the script postgresql-11-setup. That would be a question for the packagers: https://yum.postgresql.org/contact.php Or you could just use the initdb program directly instead of going through the script. The caveat being whether that would interfere with what the script does? > checksums are good for data integrity, and can only be done at init > time, I wonder if it's worth adding a note about it to that > documentation page? > > Thanks. > > Ken > > > -- > AGENCY Software > A Free Software data system > By and for non-profits > /http://agency-software.org// > /https://demo.agency-software.org/client/ > ken.tanzer@agency-software.org > (253) 245-3801 > > Subscribe to the mailing list >  to > learn more about AGENCY or > follow the discussion. -- Adrian Klaver adrian.klaver@aklaver.com