Maybe somebody can help me with this: I have recently upgraded my PostgreSQL installation to 8.3.4 on my Linux box. First I backed up my PT3 database, then upgraded PostgreSQL, then restored the database, no problems encountered. Except a massive increase in performance, which was a good thing.
Now I want to start recording some play money tourneys I have played in a separate database, so I want to create a new database from the PT3 GUI. And unfortunately this doesn't work:
Unable to create PostgreSQL database: PT3 PM
Reason: Unable to execute query: CREATE DATABASE "PT3 PM" WITH TEMPLATE = template0 ENCODING = 'SQL_ASCII';; Reason: Fatal Error (ERROR: encoding SQL_ASCII does not match server's locale en_US DETAIL: The server's LC_CTYPE setting requires encoding LATIN1. )
Oddly though I have used initdb explicitely with LC_CTYPE=SQL_ASCII:
postgres=# \l
List of databases
Name | Owner | Encoding
-----------+----------+-----------
PT3 DB | postgres | SQL_ASCII
template0 | postgres | SQL_ASCII
And this command also works from the psql terminal:
postgres=# CREATE DATABASE "PT3 PM" WITH TEMPLATE = template0 ENCODING = 'SQL_ASCII';
CREATE DATABASE
postgres=#
So the question is: Why doesn't it work from the PT3 GUI?
Any ideas?
