Re: pg_dump fails to set index ownership

Поиск
Список
Период
Сортировка
Искать
От
Bruce Momjian
Тема
Re: pg_dump fails to set index ownership
Дата
Msg-id
200509232045.j8NKj2313727@candle.pha.pa.us
Ответ на
Список
Дерево обсуждения
pg_dump fails to set index ownership Michael Fuhr <mike@fuhr.org>
Re: pg_dump fails to set index ownership Bruce Momjian <pgman@candle.pha.pa.us>
Re: pg_dump fails to set index ownership Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_dump fails to set index ownership Bruce Momjian <pgman@candle.pha.pa.us>
Re: pg_dump fails to set index ownership Michael Fuhr <mike@fuhr.org>
Tom Lane wrote:
> Michael Fuhr  writes:
> > Regarding the removal of ALTER INDEX OWNER commands from pg_dump,
> > indexes are now restored with the wrong ownership if the user doing
> > the restore is different than the user who owned the original index
> 
> pg_dump is not the source of the problem.  We should instead arrange
> that an index's relowner value is copied directly from the parent table
> during CREATE INDEX.  This is probably more important now with roles,
> since GetUserId() might not have a lot to do with the table's owner ID.

My testing indicated this is fixed.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610) 359-1001 +  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

В списке pgsql-hackers по дате отправления
От: Bruce Momjian
Дата:
От: Bruce Momjian
Дата:
FAQ