Re: which database to login to to create global users? - Mailing list pgsql-novice

From Jaime Casanova
Subject Re: which database to login to to create global users?
Date
Msg-id c2d9e70e0601031210u7ad5b88fi95f7ec19e84ef8a5@mail.gmail.com
Whole thread Raw
In response to which database to login to to create global users?  (pres <pgn.lists@gmail.com>)
Responses Re: which database to login to to create global users?  (pres <pgn.lists@gmail.com>)
List 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 by date:

Previous
From: pres
Date:
Subject: which database to login to to create global users?
Next
From: pres
Date:
Subject: Re: which database to login to to create global users?