新しいpostgresqlをインストールしていて、 "postgres"スーパーユーザーで作業しています。ログイン:PostgreSQLは "createdb"をスーパーユーザーとしてdbを作成していませんが、エラーは出力しません。
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
エラーは発生していませんが、テーブルは作成されていません。何か案は?
http://stackoverflow.com/questions/8537576/what-is-wrong-with-this-postgresql-queryに密接に関連しています –