pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Ken Tanzer <ken.tanzer@gmail.com>
To: PG-General Mailing List <pgsql-general@postgresql.org>
Subject: Re: Recommended way to enable data-checksums on Centos 7?
Date: Sun, 24 Feb 2019 17:03:53 -0800
Message-ID: <eaa07805-60aa-180c-7be6-94f4a0ad933d@aklaver.com> (raw)
In-Reply-To: <CAD3a31Uqyu8kaCgGcCKZFdhcd3WuGNhv8bq5gniY3YQ_X3_J=A@mail.gmail.com>
References: <CAD3a31Uqyu8kaCgGcCKZFdhcd3WuGNhv8bq5gniY3YQ_X3_J=A@mail.gmail.com>

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 <mailto:ken.tanzer@agency-software.org>
> (253) 245-3801
> 
> Subscribe to the mailing list 
> <mailto:agency-general-request@lists.sourceforge.net?body=subscribe> to
> learn more about AGENCY or
> follow the discussion.


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (6+ messages)  latest in thread

Message-ID: <eaa07805-60aa-180c-7be6-94f4a0ad933d@aklaver.com>
Permalink:  ../eaa07805-60aa-180c-7be6-94f4a0ad933d@aklaver.com/
Also on:    postgresql.org/message-id/eaa07805-60aa-180c-7be6-94f4a0ad933d@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, ken.tanzer@gmail.com
  Subject: Re: Recommended way to enable data-checksums on Centos 7?
  In-Reply-To: <eaa07805-60aa-180c-7be6-94f4a0ad933d@aklaver.com>
  References: <CAD3a31Uqyu8kaCgGcCKZFdhcd3WuGNhv8bq5gniY3YQ_X3_J=A@mail.gmail.com> <eaa07805-60aa-180c-7be6-94f4a0ad933d@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