如何在Postgres中更改/设置块大小?是否有任何文件可以进行配置? [英] How to change/set the block size in Postgres? Is there any file to make the configuration?
本文介绍了如何在Postgres中更改/设置块大小?是否有任何文件可以进行配置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在postgres中寻找BLOCKSIZE配置。我想知道是否可以更改/设置值?
I'm looking for the BLOCKSIZE configuration in postgres. I want to know is there a way to change/set the value?
推荐答案
在PostgreSQL v11中,创建群集时可以执行以下操作:
In PostgreSQL v11, you can do that when you create the cluster:
initdb --wal-segsize=<size in MB> [other options]
在旧版本的PostgreSQL中,配置后必须重新编译
In older versions of PostgreSQL, you have to recompile after configuring with
./configure --with-wal-segsize=<size in MB>
这篇关于如何在Postgres中更改/设置块大小?是否有任何文件可以进行配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文