Re: [HACKERS] psql and security

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] psql and security
Дата
Msg-id 28085.1001082753@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] psql and security  ("Colin 't Hart" <cthart@yahoo.com>)
Список pgsql-general
"Colin 't Hart" <cthart@yahoo.com> writes:
> Does postgres have a concept of a 'root' user? Then the password should
> only be prompted when one isn't root; ie. adopt Unix semantics.

Can't really do that in psql's \c, since it's establishing a whole new
connection; there is no possibility for superuserness on the old
connection to provide any relaxation of the check.

However, see SET SESSION AUTHORIZATION, which does what you're thinking
of within the context of a single connection.

            regards, tom lane

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

Предыдущее
От: "Colin 't Hart"
Дата:
Сообщение: Re: [HACKERS] psql and security
Следующее
От: Doug McNaught
Дата:
Сообщение: Re: Problem: Failed Make on Linux Pgres v. 7.1.2