patroni.git / summary / log / commit / refs

commit    b8ce6794de1b2d43b0b572c0fa6c5310821aeae4
Author:   Feike Steenbergen <feikesteenbergen@gmail.com>
Date:     Mon May 18 11:35:43 2015 +0000

    Initialize cluster with encoding=UTF8 by default.


helpers/postgresql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/postgresql.py b/helpers/postgresql.py index 185777e3..4e0f8487 100644 --- a/helpers/postgresql.py +++ b/helpers/postgresql.py @@ -88,7 +88,7 @@ class Postgresql: return not os.path.exists(self.data_dir) or os.listdir(self.data_dir) == [] def initialize(self): - if os.system(self._pg_ctl + ' initdb') == 0: + if os.system(self._pg_ctl + ' initdb -o --encoding=UTF8') == 0: self.write_pg_hba() return True [parent: f6d168f65ee5]