How to change table owner?

Поиск
Список
Период
Сортировка
От Anders Bogdan
Тема How to change table owner?
Дата
Msg-id 08B936B4-0B84-11D7-BCC3-000393178BD6@theworks.org
обсуждение исходный текст
Ответы Re: How to change table owner?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
Greetings!

Sort of a newbie-ish question, I haven't seen it in the archives so
thought I'd ask.
I've created and deployed a number of databases and am now getting
around to adding some table maintenance (a vacuum script). But, the
script can't run as the "postgres" user. It runs as a defined db user
"admin".. Unfortunately, in my db schema the tables are owned by
postgres and my script doesn't have permission to vacuum.  ( I've since
changed the schema so this won't happen in the future)
I need to change owner of the tables from postgres to admin... Granting
all to admin apparently isn't enough. Is there are simple way to change
table owner short of dumping, editing the dump and restoring?
redhat7.2
postgresql7.1/7.2

Thanks
Anders


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

Предыдущее
От: "wishy wishy"
Дата:
Сообщение: auto creation of database and schema
Следующее
От: Tom Lane
Дата:
Сообщение: Re: How to change table owner?