postgresql: explicitly initialize with utf8 encoding
If we d not explicitly specify utf8 as the encoding, the server will be initialized with ASCII encoding for the template1 database, which causes problems when trying to create new databases with UTF8 encoding. Closes Homebrew/homebrew#14149. Signed-off-by: Adam Vandenberg <flangy@gmail.com>master
parent
d4f4719de4
commit
e782ac6e85
|
@ -110,7 +110,7 @@ See:
|
||||||
# Create/Upgrade a Database
|
# Create/Upgrade a Database
|
||||||
|
|
||||||
If this is your first install, create a database with:
|
If this is your first install, create a database with:
|
||||||
initdb #{var}/postgres
|
initdb #{var}/postgres -E utf8
|
||||||
|
|
||||||
To migrate existing data from a previous major version (pre-9.1) of PostgreSQL, see:
|
To migrate existing data from a previous major version (pre-9.1) of PostgreSQL, see:
|
||||||
http://www.postgresql.org/docs/9.1/static/upgrading.html
|
http://www.postgresql.org/docs/9.1/static/upgrading.html
|
||||||
|
|
Loading…
Reference in New Issue