Re: change ownership on all tables

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: change ownership on all tables
Дата
Msg-id 4A733E88.2010905@hogranch.com
обсуждение исходный текст
Ответ на change ownership on all tables  (Alan McKay <alan.mckay@gmail.com>)
Список pgsql-general
Alan McKay wrote:
> OK, my DB Admin is on vacation, and 15 minutes of googling didn't get
> me the answer :-)
>
> Although in that 15 minutes I could have done all 109 tables manually :-)
>
> I know this command for a single table, and checked the manual but
> don't see anything about wildcards
>
> ALTER TABLE tablename OWNER to user;
>

see http://pgedit.com/public/sql/acl_admin/index.html
or http://www.archonet.com/pgdocs/grant-all.html

these are scripts for doing a GRANT to all objects, but they should
easily be modifiable to do a ALTER TABLE... OWNER



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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: Division by zero
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: Design Database, 3 degrees of Users.