pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Ankush Chawla <ankushchawla03@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Create Cluster --- Change the Block Size
Date: Tue, 15 Dec 2020 20:03:59 +0100
Message-ID: <250003f95a8fa8c18a070989a26b4b366cd13dff.camel@cybertec.at> (raw)
In-Reply-To: <CAOY8JhDiMT2DB5NaDmSDJzNtX=rEEtQr5s_EmFRYyf2whOiXMA@mail.gmail.com>
References: <CAOY8JhDiMT2DB5NaDmSDJzNtX=rEEtQr5s_EmFRYyf2whOiXMA@mail.gmail.com>

On Tue, 2020-12-15 at 23:05 +0530, Ankush Chawla wrote:
> how to change the block size while creating the cluster

You cannot change the data file block size (8kB) during "initdb".
You'd have to recompile PostgreSQL for that and use
--with-blocksize=BLOCKSIZE with "configure".

I recommend not to do that.

But you can use --wal-segsize to set the WAL segment size during "initdb".

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (3+ messages)

Message-ID: <250003f95a8fa8c18a070989a26b4b366cd13dff.camel@cybertec.at>
Permalink:  ../250003f95a8fa8c18a070989a26b4b366cd13dff.camel@cybertec.at/
Also on:    postgresql.org/message-id/250003f95a8fa8c18a070989a26b4b366cd13dff.camel@cybertec.at

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: laurenz.albe@cybertec.at, ankushchawla03@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Create Cluster --- Change the Block Size
  In-Reply-To: <250003f95a8fa8c18a070989a26b4b366cd13dff.camel@cybertec.at>

* 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