Pracuję ze świeżą instalacją postgresql, z superużytkownikiem "postgres". Zalogowany przez:Postgresql nie tworzy db z "createdb" jako superużytkownikiem, ale nie wypisuje błędów
sudo -u postgres psql
postgres=# createdb database
postgres-# \list
List of databases
Name | Owner | Encoding | Collation | Ctype | Access privileges
-----------+----------+----------+-------------+-------------+-----------------------
postgres | postgres | UTF8 | en_GB.UTF-8 | en_GB.UTF-8 |
template0 | postgres | UTF8 | en_GB.UTF-8 | en_GB.UTF-8 | =c/postgres
: postgres=CTc/postgres
template1 | postgres | UTF8 | en_GB.UTF-8 | en_GB.UTF-8 | =c/postgres
: postgres=CTc/postgres
Brak błędów, ale tabela nie jest tworzona. Jakieś pomysły?
Ściśle związane z http://stackoverflow.com/questions/8537576/what-is-wrong-with-this-postgresql-query –