Re: CREATE DATABASE foo OWNER bar

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CREATE DATABASE foo OWNER bar
Дата
Msg-id 20822.1176736857@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: CREATE DATABASE foo OWNER bar  (Larry Rosenman <ler@lerctr.org>)
Ответы Re: CREATE DATABASE foo OWNER bar  (Larry Rosenman <ler@lerctr.org>)
Список pgsql-hackers
Larry Rosenman <ler@lerctr.org> writes:
> When I try and RESTORE a pg_dump in the current state, we get errors because
> the public schema is owned by postgres, and the grant commands are issued
> as the user (since I'm restoring as the purported owner.

That's a different issue entirely, which is that if you want to restore
a dump containing objects of multiple ownerships, you need to be
superuser; else you can't "give away" the ownership.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: CREATE DATABASE foo OWNER bar
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Build-Problem with pgc.c on OSX 10.4