Re: Revoking the right to create (non-temporary) tables?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Revoking the right to create (non-temporary) tables?
Дата
Msg-id 20576.1172592414@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Revoking the right to create (non-temporary) tables?  (Brian Hurt <bhurt@janestcapital.com>)
Список pgsql-novice
Brian Hurt <bhurt@janestcapital.com> writes:
> Is there a way to revoke the right of a given user from creating
> tables?  By preference I'd restrict only creating non-temporary tables.

> I've tried both
> REVOKE CREATE ON DATABASE dbase FROM user;
> and:
> REVOKE CREATE ON SCHEMA public FROM user;

> neither of these seem to work.  Help?

What you missed is that you have to revoke those two rights from PUBLIC,
else the user still has 'em via his implicit membership in PUBLIC.  The
REVOKEs you gave were no-ops, because there was no explicit GRANT to
that particular user for them to undo.  The only GRANTs that are in the
permissions structure by default are to PUBLIC ...

            regards, tom lane

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

Предыдущее
От: Brian Hurt
Дата:
Сообщение: Revoking the right to create (non-temporary) tables?
Следующее
От: "Neil Aggarwal"
Дата:
Сообщение: Crappy performance even though not swapping