Re: pg_dump fails to set index ownership - Mailing list pgsql-bugs

From Michael Fuhr
Subject Re: pg_dump fails to set index ownership
Date
Msg-id 20050111034317.GA8210@winnie.fuhr.org
Whole thread Raw
In response to pg_dump fails to set index ownership  (Michael Fuhr <mike@fuhr.org>)
Responses Re: pg_dump fails to set index ownership  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Mon, Jan 10, 2005 at 07:28:52PM -0700, Michael Fuhr wrote:

> pg_dump fails to set ownership on indexes.

Is this a bug in pg_dump, or is it perhaps a bug in CREATE INDEX?
Is there any reason CREATE INDEX shouldn't set the index owner to
be the same as the table owner?

For pg_dump's part, it's issuing ALTER TABLE OWNER TO immediately
after creating the table but before populating it and creating the
indexes.  If ALTER TABLE OWNER TO were issued after creating the
indexes then the ownership would cascade to the indexes.  Or pg_dump
could issue ALTER INDEX OWNER TO statements after creating the
indexes.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

pgsql-bugs by date:

Previous
From: Michael Fuhr
Date:
Subject: pg_dump fails to set index ownership
Next
From: Tom Lane
Date:
Subject: Re: pg_dump fails to set index ownership