I am trying to create a database using this command:
CREATE DATABASE workgroup WITH TEMPLATE = template0 ENCODING = 'UTF8' LC_COLLATE = 'Norwegian (Bokmål)_Norway.1252' LC_CTYPE = 'Norwegian (Bokmål)_Norway.1252'; But it fails with this error:
"ERROR: invalid locale name: "Norwegian (Bokmål)_Norway.1252" ********** Error ********** ERROR: invalid locale name: "Norwegian (Bokmål)_Norway.1252" SQL state: 42809" I added Norwegian (Bokmål) keyboard on Windows 7, and also failed with standard 'a' (Bokmal) and without the space.
Creating the DB with this locale:
LC_COLLATE='Estonian_Estonia.1257' LC_CTYPE='Estonian_Estonia.1257' works fine.
I've installed Windows 9.3 Postgres with the Norwegian Bokmal locale, but then queried the database for the locales using the SQL commands:
show LC_COLLATE; show LC_CTYPE; SELECT * FROM pg_settings WHERE name ~~ 'lc%'; It returns empty data for LC_COLLATE and LC_CTYPE.
What should be the LC* values for the Norwegian (Bokmål) locale?