Re: User/login questions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: User/login questions
Дата
Msg-id 26869.1060868989@sss.pgh.pa.us
обсуждение исходный текст
Ответ на User/login questions  (Jason Hihn <jhihn@paytimepayroll.com>)
Ответы Re: User/login questions  (Jason Hihn <jhihn@paytimepayroll.com>)
Список pgsql-novice
Jason Hihn <jhihn@paytimepayroll.com> writes:
> 2) Finding out what databases the user has access to (How?) without having
> to maintain a copy myself. (Can it be pulled from some system table, or join
> of system tables? (i.e. SELECT db_name FROM something WHERE user='me' AND
> granted_perm='SELECT')

I'm afraid not --- that info is only available from the postmaster's
pg_hba.conf file, which is not accessible as a table.  The typical setup
though is that any user can connect to any database.

            regards, tom lane

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

Предыдущее
От: Jason Hihn
Дата:
Сообщение: Fast deletes
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Fast deletes