Re: pg_dump fails to set index ownership

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: pg_dump fails to set index ownership
Date: 2005-01-11 03:43:17
Message-ID: 20050111034317.GA8210@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2005-01-11 05:25:31 Re: pg_dump fails to set index ownership
Previous Message Michael Fuhr 2005-01-11 02:28:52 pg_dump fails to set index ownership