Re: Ignore invalid indexes in pg_dump. - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Ignore invalid indexes in pg_dump.
Date
Msg-id 20130328213508.GD2126@momjian.us
Whole thread Raw
In response to Re: Ignore invalid indexes in pg_dump.  ("anarazel@anarazel.de" <andres@anarazel.de>)
Responses Re: Ignore invalid indexes in pg_dump.  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-hackers
On Thu, Mar 28, 2013 at 10:31:51PM +0100, anarazel@anarazel.de wrote:
> 
> 
> Tom Lane <tgl@sss.pgh.pa.us> schrieb:
> 
> >Bruce Momjian <bruce@momjian.us> writes:
> >> Should I just patch pg_upgrade to remove the "indisvalid", skip
> >> "indisvalid" indexes, and backpatch it?  Users should be using the
> >> version of pg_upgrade to match new pg_dump.  Is there any case where
> >> they don't match?  Do I still need to check for "indisready"?
> >
> >Yeah, if you can just ignore !indisvalid indexes that should work fine.
> >I see no need to look at indisready if you're doing that.
> 
> You need to look at inisready in 9.2 since thats used for about to be dropped indexes. No?

Well, if it is dropped, pg_dump will not dump it.  At this point though,
pg_upgrade is either running in check mode, or it is the only user.  I
think we are OK.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + It's impossible for everything to be true. +



pgsql-hackers by date:

Previous
From: "anarazel@anarazel.de"
Date:
Subject: Re: Ignore invalid indexes in pg_dump.
Next
From: Tom Lane
Date:
Subject: Re: Ignore invalid indexes in pg_dump.