Re: CATALOG/NOCATALOG for new users

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CATALOG/NOCATALOG for new users
Дата
Msg-id 15032.1072279305@sss.pgh.pa.us
обсуждение исходный текст
Ответ на CATALOG/NOCATALOG for new users  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Ответы Re: CATALOG/NOCATALOG for new users  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-patches
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> 1. Should we only allow users who currently hold the catalog perm to grant
> it to others?  I think yes, since otherwise a regular superuser can create
> themselves another account with the catalog priv.

That brings up the whole business of just how super is a superuser,
and does it even make sense to try to design a "not quite superuser"
protection state.  I'm not convinced that the usecatupd flag is so well
thought out that we should expose it for general use without some
consideration of alternative designs.

As an example, it might make more sense to create a separate flag bit
that simply grants the ability to add and delete users (non-superusers,
presumably), with none of the other attributes of a superuser.  If I
recall your original concern properly, this would be a safer facility
for what you wanted to accomplish.

> 3. Upgrading from previous postgres will not give their old superusers
> back their catalog privilege, unless they dump with 7.5's pg_dump.

Only if you make it default to NOCATALOG, which is highly debatable in
my mind, since it is non-backwards-compatible.

            regards, tom lane

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

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: Doc patch--clarifying $1 in PL/PgSQL
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: ISO year.