Re: Copy user privileges

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Copy user privileges
Дата
Msg-id 21463.1121195570@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Copy user privileges  ("Graham Vickrage" <graham@gpmd.co.uk>)
Ответы Re: Copy user privileges  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-sql
"Graham Vickrage" <graham@gpmd.co.uk> writes:
> I want to keep all the privileges but assign them to a new user. 

> What is the best way of doing this?

How about just renaming the old user to a new name?

I don't think we have an ALTER command for that, but an UPDATE on
pg_shadow would get the job done just as well.
        regards, tom lane


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

Предыдущее
От: Christoph Haller
Дата:
Сообщение: Re: PostgreSQL - ERROR: Cannot cast type character varying to
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Copy user privileges