Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id EEFD7650242 for ; Thu, 30 Oct 2008 22:28:06 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 65538-03 for ; Thu, 30 Oct 2008 22:28:04 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 7056365023A for ; Thu, 30 Oct 2008 22:28:04 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m9V1RwYZ014767; Thu, 30 Oct 2008 21:27:58 -0400 (EDT) To: Jeff Frost cc: pgsql-performance@postgresql.org Subject: Re: Index usage problem on 8.3.3 In-reply-to: <490A5DCB.9060403@frostconsultingllc.com> References: <490A4EBE.9030804@frostconsultingllc.com> <13272.1225413116@sss.pgh.pa.us> <490A56C1.8020804@frostconsultingllc.com> <14519.1225415657@sss.pgh.pa.us> <490A5DCB.9060403@frostconsultingllc.com> Comments: In-reply-to Jeff Frost message dated "Thu, 30 Oct 2008 18:22:19 -0700" Date: Thu, 30 Oct 2008 21:27:58 -0400 Message-ID: <14766.1225416478@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200810/141 X-Sequence-Number: 31722 Jeff Frost writes: > Tom Lane wrote: >> Okay. What that means is that the indexes were created on data that had >> already been inserted and updated to some extent, resulting in >> HOT-update chains that turned out to be illegal for the new indexes. >> The way we deal with this is to mark the indexes as not usable by any >> query that can still see the dead HOT-updated tuples. > Any idea why I don't see it on 8.3.4? I think it's more likely some small difference in your test conditions than any real version-to-version difference. In particular I think the "still see" test might be influenced by the ages of transactions running concurrently. regards, tom lane