Merge pull request #579 from sathieu/template_encoding
(MODULES-1834) Be less strict when changing template1 encoding
This commit is contained in:
commit
d348cdb4b6
1 changed files with 1 additions and 1 deletions
|
@ -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}')",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue