Merge pull request #579 from sathieu/template_encoding

(MODULES-1834) Be less strict when changing template1 encoding
This commit is contained in:
Morgan Haskel 2015-03-12 10:06:53 -07:00
commit d348cdb4b6

View file

@ -94,7 +94,7 @@ class postgresql::server::initdb {
SET encoding = pg_char_to_encoding('${encoding}'), datistemplate = TRUE
WHERE datname = 'template1'",
unless => "SELECT datname FROM pg_database WHERE
datname = 'template1' AND pg_encoding_to_char(encoding) = '${encoding}'",
datname = 'template1' AND encoding = pg_char_to_encoding('${encoding}')",
}
}
}