Re: OWNER TO on all objects

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: OWNER TO on all objects
Дата
Msg-id 25718.1087275059@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: OWNER TO on all objects  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Ответы Re: OWNER TO on all objects  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Список pgsql-hackers
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> I just inserted the ALTER OWNER statement between the CREATE and the 
> GRANTs.  Why do you want them at the end of the dump?

So that the initial owner is still owner when he does COPY, ALTER TABLE
ADD PRIMARY KEY, etc etc.  Else you're gonna have problems.

The regression database is next to useless as a testbed for this,
btw, since all the objects in it are owned by the superuser anyway.
        regards, tom lane


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

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: OWNER TO on all objects
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: OWNER TO on all objects