问题
I'm looking for the BLOCKSIZE configuration in postgres. I want to know is there a way to change/set the value?
回答1:
In PostgreSQL v11, you can do that when you create the cluster:
initdb --wal-segsize=<size in MB> [other options]
In older versions of PostgreSQL, you have to recompile after configuring with
./configure --with-wal-segsize=<size in MB>
回答2:
This is no runtime configuration.
https://www.postgresql.org/docs/current/storage-page-layout.html
Every table and index is stored as an array of pages of a fixed size (usually 8 kB, although a different page size can be selected when compiling the server).
来源:https://stackoverflow.com/questions/56147727/how-to-change-set-the-block-size-in-postgres-is-there-any-file-to-make-the-conf