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

From Andres Freund
Subject Re: Ignore invalid indexes in pg_dump.
Date
Msg-id 20130328220807.GC28736@alap2.anarazel.de
Whole thread Raw
In response to Re: Ignore invalid indexes in pg_dump.  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
On 2013-03-28 17:54:08 -0400, Bruce Momjian wrote:
> On Thu, Mar 28, 2013 at 10:47:55PM +0100, anarazel@anarazel.de wrote:
> >
> >
> > Tom Lane <tgl@sss.pgh.pa.us> schrieb:
> >
> > >"anarazel@anarazel.de" <andres@anarazel.de> writes:
> > >> Tom Lane <tgl@sss.pgh.pa.us> schrieb:
> > >>> 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?
> > >
> > >No, he doesn't need to look at indisready/indislive; if either of
> > >those flags are off then indisvalid should certainly be off too.  (If
> > >it isn't, queries against the table are already in trouble.)
> >
> > 9.2 represents inisdead as live && !ready, doesn't it? So just looking
> > at indislive will include about to be dropped or partially dropped
> > indexes?
> 
> Where do you see 'inisdead' defined?

Sorry, its named the reverse, indislive. And its only there in 9.3+...

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Ignore invalid indexes in pg_dump.
Next
From: Tom Lane
Date:
Subject: Re: Ignore invalid indexes in pg_dump.