Re: which database to login to to create global users?

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: which database to login to to create global users?
Дата
Msg-id c2d9e70e0601031210u7ad5b88fi95f7ec19e84ef8a5@mail.gmail.com
обсуждение исходный текст
Ответ на which database to login to to create global users?  (pres <pgn.lists@gmail.com>)
Ответы Re: which database to login to to create global users?  (pres <pgn.lists@gmail.com>)
Список pgsql-novice
On 1/3/06, pres <pgn.lists@gmail.com> wrote:
> hello,
>
> i've been a filemaker pro user for quite awhile, and have decided to take
> the plunge with postgresql.
>
> i just installed the latest release version, v8.1.1, and am slowly making my
> way through documentation and tutorials.
>
> i can launch postgres successfully, creating databases & users, reading &
> writing data, etc.
>
> it seems clear to me that if i want to create a user with access rights for
> a particular database, then i do so by logging in to that particular
> database, and creating ROLES, etc. that makes sense.
>
> i'm confused about one issue -- what database should i login to if i wish to
> create 'global' users? is it "template1"? "template0" seems to be generaly
> inaccessible.
>
> any advice or pointers to the right documentation would be very helpful!
>
> thank you.
>
> pres
>

roles are always global... i don't think you can create roles that
exist just in one database...

you assign permissions to roles via the GRANT statement...

--
Atentamente,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

В списке pgsql-novice по дате отправления:

Предыдущее
От: pres
Дата:
Сообщение: which database to login to to create global users?
Следующее
От: pres
Дата:
Сообщение: Re: which database to login to to create global users?