人生最悪の忘れ物

Postgresql8で、createuserコマンドを使用すると、
Shall the new role be a superuser? (y/n)
Shall the new role be allowed to create databases? (y/n)
Shall the new role be allowed to create more new roles? (y/n)
以前のOracleやPostgreSQL7以前では、user追加のメッセージが返ってきたと思います。

何故、新しいuserを作ろうとすると、新しロールを作ることになるのですか?

A 回答 (1件)

PostgreSQL8から、ロールという概念が追加されたのですが、その実はユーザの追加と同じです。


ですから、
Shall the new role be a superuser? (y/n)
については、「追加するロール(ユーザ)をpostgres同等にするか?」
ということで、
Shall the new role be allowed to create databases? (y/n)
Shall the new role be allowed to create more new roles? (y/n)
については、それぞれ、
「あたらしいDBを作る権限を与えるか?」
「新しいロール(ユーザ)を作る権限を与えるか?」
ということです。
ロールという言葉を気にしないでも良いようです。
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!

関連するカテゴリからQ&Aを探す