Re: changing ownership of db

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: changing ownership of db
Дата
Msg-id 4539.1057347409@sss.pgh.pa.us
обсуждение исходный текст
Ответ на changing ownership of db  (Mark Nelson <MCN@cc.usu.edu>)
Список pgsql-novice
Mark Nelson <MCN@cc.usu.edu> writes:
> One of our databases was created with a user that we no longer
> want to use. I cannot drop the user because it owns one of the
> dbs and some other objects.
> Is there a way to change ownership, or REVOKE all of the owners
> privileges and give them to another user, so I can drop that
> user?

Not very easily.  You could just rename the username to something
you do want to keep using (a quick UPDATE on pg_shadow would work
for that).

            regards, tom lane

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

Предыдущее
От: "Daniel Phlander"
Дата:
Сообщение: Mailing list
Следующее
От: "Boget, Chris"
Дата:
Сообщение: Replace into...