Reduce toast segment size to 2000

This commit is contained in:
Konstantin Knizhnik
2021-12-15 18:19:45 +03:00
parent 945e83a6ba
commit 1ca9bea7c0
2 changed files with 2 additions and 1 deletions

View File

@@ -182,6 +182,7 @@ fn run_initdb(conf: &'static PageServerConf, initdbpath: &Path) -> Result<()> {
let initdb_output = Command::new(initdb_path)
.args(&["-D", initdbpath.to_str().unwrap()])
.args(&["-U", &conf.superuser])
.args(&["-E", "utf8"])
.arg("--no-instructions")
// This is only used for a temporary installation that is deleted shortly after,
// so no need to fsync it

View File

@@ -16,7 +16,7 @@ use yakv::storage::{
Value,
};
const TOAST_SEGMENT_SIZE: usize = 2 * 1024;
const TOAST_SEGMENT_SIZE: usize = 2000;
const CACHE_SIZE: usize = 1024; // 8Mb
///