Set utf8 encoding in initdb (#993)

refer #992
This commit is contained in:
Konstantin Knizhnik
2021-12-21 15:43:34 +03:00
committed by GitHub
parent 76777f5812
commit 68aa9d2715

View File

@@ -185,6 +185,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