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