pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Create Cluster --- Change the Block Size
3+ messages / 3 participants
[nested] [flat]

* Create Cluster --- Change the Block Size
@ 2020-12-15 17:35 Ankush Chawla <ankushchawla03@gmail.com>
  2020-12-15 17:42 ` Re: Create Cluster --- Change the Block Size Ron <ronljohnsonjr@gmail.com>
  2020-12-15 19:03 ` Re: Create Cluster --- Change the Block Size Laurenz Albe <laurenz.albe@cybertec.at>
  0 siblings, 2 replies; 3+ messages in thread

From: Ankush Chawla @ 2020-12-15 17:35 UTC (permalink / raw)
  To: pgsql-admin@lists.postgresql.org

hi all,

how to change the block size while creating the cluster
block_size

-- 
Best Regards,
Ankush Chawla

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Create Cluster --- Change the Block Size
  2020-12-15 17:35 Create Cluster --- Change the Block Size Ankush Chawla <ankushchawla03@gmail.com>
@ 2020-12-15 17:42 ` Ron <ronljohnsonjr@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Ron @ 2020-12-15 17:42 UTC (permalink / raw)
  To: pgsql-admin@lists.postgresql.org

On 12/15/20 11:35 AM, Ankush Chawla wrote:
> hi all,
>
> how to change the block size while creating the cluster
> block_size

https://stackoverflow.com/questions/56147727/how-to-change-set-the-block-size-in-postgres-is-there-a...

-- 
Angular momentum makes the world go 'round.





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Create Cluster --- Change the Block Size
  2020-12-15 17:35 Create Cluster --- Change the Block Size Ankush Chawla <ankushchawla03@gmail.com>
@ 2020-12-15 19:03 ` Laurenz Albe <laurenz.albe@cybertec.at>
  1 sibling, 0 replies; 3+ messages in thread

From: Laurenz Albe @ 2020-12-15 19:03 UTC (permalink / raw)
  To: Ankush Chawla <ankushchawla03@gmail.com>; pgsql-admin@lists.postgresql.org

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






^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2020-12-15 19:03 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-12-15 17:35 Create Cluster --- Change the Block Size Ankush Chawla <ankushchawla03@gmail.com>
2020-12-15 17:42 ` Ron <ronljohnsonjr@gmail.com>
2020-12-15 19:03 ` Laurenz Albe <laurenz.albe@cybertec.at>

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