Received: from candle.pha.pa.us (pgman@s5-03.ppp.op.net [209.152.195.67]) by hub.org (8.9.3/8.9.3) with ESMTP id LAA73571 for ; Thu, 25 May 2000 11:12:54 -0400 (EDT) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id LAA21178; Thu, 25 May 2000 11:11:23 -0400 (EDT) From: Bruce Momjian Message-Id: <200005251511.LAA21178@candle.pha.pa.us> Subject: Re: Use of index in 7.0 vs 6.5 In-Reply-To: <8F4C99C66D04D4118F580090272A7A23018BFF@SECTORBASE1> "from Mikheev, Vadim at May 25, 2000 07:29:58 am" To: "Mikheev, Vadim" Date: Thu, 25 May 2000 11:11:23 -0400 (EDT) CC: "'Hiroshi Inoue'" , Tom Lane , Ryan Bradetich , pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL77 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200005/141 [ Charset ISO-8859-1 unsupported, converting... ] > > For example we could count up distinct values for the first > > column of an index by scanning its index relation. > > Oracle has index keys distribution page... And we have near empty > meta-page for each index AM... And backend reads this page for > each insert... That certainly would make sense. We have hesitated to gather more statistics because of the time involved. Fuller statistics on just the indexed columns could be a big win and be done fairly quickly because the rows are already sorted in the index. -- Bruce Momjian | http://www.op.net/~candle pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026