X-Original-To: pgsql-performance@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 1E68D475EB2 for ; Tue, 25 Feb 2003 10:40:56 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 44280-07 for ; Tue, 25 Feb 2003 10:40:45 -0500 (EST) Received: from localhost.localdomain (unknown [65.217.53.66]) by postgresql.org (Postfix) with ESMTP id 095B5475B99 for ; Tue, 25 Feb 2003 10:28:07 -0500 (EST) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id h1PFuM6P026022; Tue, 25 Feb 2003 10:56:22 -0500 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id h1PFS2p07183; Tue, 25 Feb 2003 10:28:02 -0500 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id F3HTHGLS; Tue, 25 Feb 2003 10:28:01 -0500 Subject: Re: slow query From: Robert Treat To: Tom Lane Cc: Josh Berkus , Clarence Gardner , Oleg Lebedev , "pgsql-performance@postgresql.org" In-Reply-To: <5421.1046119835@sss.pgh.pa.us> References: <1046111434.1014.165.camel@camel> <200302241045.20856.josh@agliodbs.com> <5421.1046119835@sss.pgh.pa.us> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 25 Feb 2003 10:28:02 -0500 Message-Id: <1046186882.1015.377.camel@camel> Mime-Version: 1.0 X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/198 X-Sequence-Number: 1254 On Mon, 2003-02-24 at 15:50, Tom Lane wrote: > You'll > particularly get burnt by indexes that are on OIDs or sequentially > assigned ID numbers, since the set of IDs in use just naturally tends to > migrate higher over time. I don't think that the update rate per se has > much to do with this, it's the insertion of new IDs and deletion of old > ones that causes the statistical shift. Would it be safe to say that tables with high update rates where the updates do not change the indexed value would not suffer from index bloat? For example updates to non-index columns or updates that overwrite, but don't change the value of indexed columns; do these even need to touch the index? Robert Treat