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

From Tom Lane
Subject Re: which database to login to to create global users?
Date
Msg-id 19809.1136321840@sss.pgh.pa.us
Whole thread Raw
In response to Re: 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?
Re: which database to login to to create global users?
List pgsql-novice
pres <pgn.lists@gmail.com> writes:
> so, if i understand you correctly, it does not matter which database i'm
> logged into when i create a role?

Correct.

> where (what database/table), then, are theses assignments stored?

The info related to roles is stored in some "shared" catalogs that are
visible in every database --- just the same way that pg_database is
visible in every database.  Try this to see which catalogs are shared:

    select relname from pg_class where relisshared and relkind = 'r';

See also the documentation on the system catalogs:
http://www.postgresql.org/docs/8.1/static/catalogs.html
The description of each catalog takes care to mention it if the catalog
is shared across databases.

            regards, tom lane

pgsql-novice by date:

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