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

Поиск
Список
Период
Сортировка
От Brian Hurt
Тема Revoking the right to create (non-temporary) tables?
Дата
Msg-id 45E44D92.1030400@janestcapital.com
обсуждение исходный текст
Ответы Re: Revoking the right to create (non-temporary) tables?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
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?

The idea I'm looking for is a "safe" user- a user that can view the
production database but can't change or create anything.  This allows
fumble-fingered admins to keep a psql open in a window without having to
worry about typing the wrong command in the wrong window, and also
allows us to give out "guest" accounts.

Brian


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

Предыдущее
От: Kevin Hunter
Дата:
Сообщение: Re: Get a list of databases?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Revoking the right to create (non-temporary) tables?