Completely replacing an old user

Поиск
Список
Период
Сортировка
От Koen De Groote
Тема Completely replacing an old user
Дата
Msg-id CAGbX52H6XVMzZ96TcyArjOPw2KCUpQ6EC1Ch=yPAyUxsL1Qreg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Completely replacing an old user  (Erik Wienhold <ewie@ewie.name>)
Re: Completely replacing an old user  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Completely replacing an old user  (Pepe TD Vo <pepevo@yahoo.com>)
Re: Completely replacing an old user  (Koen De Groote <kdg.dev@gmail.com>)
Список pgsql-admin
All,

I am trying to set up a new user for a client application, and thus want to remove the old user afterward.

The steps are:

1/ create the new user
2/ give the new user all priviliges on database, table, sequence, function and procedures, just like the old user
3/ deply client application with the new user and credentials
3/ Swap ownership of the databases
4/ Remove privileges from the old user
5/ Drop the old user

But I'm getting stuck on one last error message:


ERROR:  role "X" cannot be dropped because some objects depend on it
DETAIL:  privileges for default privileges on new functions belonging to role postgres in schema public

The "new functions" bit is confusing. I've swapped over all the current functions, but cannot seem to find the appropriate table for privileges on new functions.


What am I missing here?

Regards,
Koen De Groote

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

Предыдущее
От: Konda Reddy G
Дата:
Сообщение: Need Ora2pg steps
Следующее
От: Erik Wienhold
Дата:
Сообщение: Re: Completely replacing an old user