From: Kevin Grittner <kgrittn@ymail.com>
To: Matheus de Oliveira <matioli.matheus@gmail.com>
To: Burgess, Freddie <FBurgess@radiantblue.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: Postgresql concern of effect of invalid index
Date: Sun, 24 Aug 2014 04:45:39 -0700
Message-ID: <1408880739.88496.YahooMailNeo@web122305.mail.ne1.yahoo.com> (raw)
In-Reply-To: <CAJghg4+hQyp9NsScZsDa==joO+BXaTxZ3_KvYnQyr-CP8razqw@mail.gmail.com>
References: <3BBE635F64E28D4C899377A61DAA9FE03F08FB17@NBSVR-MAIL01.radiantblue.local>
<3BBE635F64E28D4C899377A61DAA9FE03F08FB57@NBSVR-MAIL01.radiantblue.local>
<CAJghg4+hQyp9NsScZsDa==joO+BXaTxZ3_KvYnQyr-CP8razqw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Matheus de Oliveira <matioli.matheus@gmail.com> wrote:
> Burgess, Freddie <FBurgess@radiantblue.com> wrote:
>
>> My question is? What are the ramifications of having this
>> spatial indexes remain in this state?
>> update pg_index set indisvalid = false
>> where indexrelid = 'sidx_sponser_report_y2014m06'::regclass;
>
> If you marked it as invalid, then it is not going to be updated
> anymore.
I think you are confusing indisvalid with indisready:
http://www.postgresql.org/docs/current/interactive/catalog-pg-index.html
Flagging it is invalid should suppress its use for queries, yet
still do all the work of maintaining it.
> BTW, you'd better take this to -performance list and discuss
> about why it is choosing a *bad* index instead of messing with
> the catalog.
+1
In any event, this is most definitely *not* a bug report, so it
belongs on a different list.
--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: kgrittn@ymail.com, matioli.matheus@gmail.com, FBurgess@radiantblue.com
Subject: Re: Postgresql concern of effect of invalid index
In-Reply-To: <1408880739.88496.YahooMailNeo@web122305.mail.ne1.yahoo.com>
References: <3BBE635F64E28D4C899377A61DAA9FE03F08FB17@NBSVR-MAIL01.radiantblue.local> <3BBE635F64E28D4C899377A61DAA9FE03F08FB57@NBSVR-MAIL01.radiantblue.local> <CAJghg4+hQyp9NsScZsDa==joO+BXaTxZ3_KvYnQyr-CP8razqw@mail.gmail.com> <1408880739.88496.YahooMailNeo@web122305.mail.ne1.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox