自由に作成および破棄できるおもちゃのデータベースをセットアップしようとしています。postgres
重要なものを破壊した場合に備えて、ユーザーを使用したくありません。私は次のことをしました:
$ psql -h localhost -U postgres
postgres=# \du
List of roles
Role name | Attributes | Member of
-----------+-----------------------------------+-----------
postgres | Superuser, Create role, Create DB | {}
postgres=# create user Stephen createdb;
CREATE ROLE
postgres=# \du
List of roles
Role name | Attributes | Member of
-----------+-----------------------------------+-----------
postgres | Superuser, Create role, Create DB | {}
stephen | Create DB | {}
postgres=# ^D\q
次に、接続しようとすると、次のエラーが表示されます。
$ psql -h localhost
psql: FATAL: role "Stephen" does not exist
$ psql -h localhost -U Stephen
psql: FATAL: role "Stephen" does not exist
これは私には意味がありません。ユーザー、スティーブンは見えますが、使用できません。私は何が欠けていますか?
OS X Lion で psql 9.0.10 を使用しています。