Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XLWF9-00057A-KF for pgsql-bugs@arkaria.postgresql.org; Sun, 24 Aug 2014 11:45:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XLWF9-0008C0-3t for pgsql-bugs@arkaria.postgresql.org; Sun, 24 Aug 2014 11:45:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XLWF6-0008Br-UP for pgsql-bugs@postgresql.org; Sun, 24 Aug 2014 11:45:53 +0000 Received: from nm24.bullet.mail.ne1.yahoo.com ([98.138.90.87]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XLWEx-0002cm-GA for pgsql-bugs@postgresql.org; Sun, 24 Aug 2014 11:45:51 +0000 Received: from [98.138.100.117] by nm24.bullet.mail.ne1.yahoo.com with NNFMP; 24 Aug 2014 11:45:39 -0000 Received: from [98.138.87.5] by tm108.bullet.mail.ne1.yahoo.com with NNFMP; 24 Aug 2014 11:45:39 -0000 Received: from [127.0.0.1] by omp1005.mail.ne1.yahoo.com with NNFMP; 24 Aug 2014 11:45:39 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 223999.94343.bm@omp1005.mail.ne1.yahoo.com Received: (qmail 13838 invoked by uid 60001); 24 Aug 2014 11:45:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1408880739; bh=4cQM/bh5Tk0WufIMrdxk1IGuMREAbvpra4WMmeLVMhQ=; h=References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=V3prkRuz2ysU0inqZU12D8qd/aNG+g8LvrpusmXIBBUFssl3WGfO6mfMThYhm1Sgl9LGmcSvlejI2jbqkoQINEbyFZ6FbTPgwOukI1xmkgwuDFqqJsxFK+u4KBMtF2h0maXPIHNcJZ+74Yglxd5KN2teUSVxRHu3OAsXHWe1gac= X-YMail-OSG: JMtC.acVM1mz8r9bcK41h5ANmd_z0aKoDjwjBZtoMaHqL2Q 4QMbDBVVWCbAqsKCbyuJRMmuzjOA9_SpaXZKxAX3GszKYw.iUdkaquLAneTI TgdV7pTFc1RWqQX0EVC_lshhN5sztU6pwomTzpBPMsEHQncPkZfXi82fZPP5 3tMf20VMYx4IyMnAkvr01w9sHKUgDqfi5u82iTTqL6uCjloq6QMsePcs9q9A OXvjHcOEeDD80Isb9QL5GZcumYdp_B_dKJWABTEDoHnNkPyRNHz7WSmG5qq. 5UDIoiIDMOU.MgletF7Buc_KoR6_eYPh0KvQW8KISAUusV8C_K0uBrprNcDT K.19Nyf.s4bPhEVBhX0s.fz3fxPcnBLwumXLFkGTUx2Taw_pYuDjAV0AYNKi OpZOcjyowA_on9.3xRnAJIERuhEu1Ze0h0uDJUeRoDXvSTTUiwRyMvpR485p d46CW_tosed8WX8Cpoj5J60nrfMYdroH9AllpcSZzd6uAkhS1Y0E0Frf9KY. tqhw7b5QvsEFSE5672Q4uxHpZPUo1p857dneqhDpiG8mxcZBUBlobq9eXkRe LJzyUdveK93SWXjf8o6W4xaDjmGLPbjniE6bwLVvsPm6qGtUeWrYNuP1m3Rb 2UmlfQ9GRrl8T8JE2Zvt0gnwvEUAlgYEb4yVHsc0ncZSywf71d.CS18.Bdbh _G1k6.Z4Ts26Yytxy Received: from [24.178.25.147] by web122305.mail.ne1.yahoo.com via HTTP; Sun, 24 Aug 2014 04:45:39 PDT X-Rocket-MIMEInfo: 002.001, TWF0aGV1cyBkZSBPbGl2ZWlyYSA8bWF0aW9saS5tYXRoZXVzQGdtYWlsLmNvbT4gd3JvdGU6Cj4gQnVyZ2VzcywgRnJlZGRpZSA8RkJ1cmdlc3NAcmFkaWFudGJsdWUuY29tPiB3cm90ZToKPgo.PiBNeSBxdWVzdGlvbiBpcz8gV2hhdCBhcmUgdGhlIHJhbWlmaWNhdGlvbnMgb2YgaGF2aW5nIHRoaXMKPj4gc3BhdGlhbCBpbmRleGVzIHJlbWFpbiBpbiB0aGlzIHN0YXRlPwoKPj4gdXBkYXRlIHBnX2luZGV4IHNldCBpbmRpc3ZhbGlkID0gZmFsc2UKPj7CoMKgIHdoZXJlIGluZGV4cmVsaWQgPSAnc2lkeF9zcG8BMAEBAQE- X-Mailer: YahooMailWebService/0.8.201.700 References: <3BBE635F64E28D4C899377A61DAA9FE03F08FB17@NBSVR-MAIL01.radiantblue.local> <3BBE635F64E28D4C899377A61DAA9FE03F08FB57@NBSVR-MAIL01.radiantblue.local> Message-ID: <1408880739.88496.YahooMailNeo@web122305.mail.ne1.yahoo.com> Date: Sun, 24 Aug 2014 04:45:39 -0700 From: Kevin Grittner Reply-To: Kevin Grittner Subject: Re: Postgresql concern of effect of invalid index To: Matheus de Oliveira , "Burgess, Freddie" Cc: "pgsql-bugs@postgresql.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Matheus de Oliveira wrote: > Burgess, Freddie wrote: > >> My question is? What are the ramifications of having this >> spatial indexes remain in this state? >> update pg_index set indisvalid =3D false >>=A0=A0 where indexrelid =3D '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 --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs