pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <Inoue@tpf.co.jp>
To: Bruce Momjian <pgman@candle.pha.pa.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Mikheev, Vadim <vmikheev@SECTORBASE.COM>
Cc: Ryan Bradetich <ryan_bradetich@hp.com>
Cc: pgsql-sql@postgresql.org
Subject: RE: Use of index in 7.0 vs 6.5
Date: Fri, 26 May 2000 09:02:50 +0900
Message-ID: <000301bfc6a5$bb1ce600$2801007e@tpf.co.jp> (raw)
In-Reply-To: <200005251608.MAA25042@candle.pha.pa.us>

> -----Original Message-----
> From: Bruce Momjian [mailto:pgman@candle.pha.pa.us]
> 
> > Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > > 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.
> > 
> > Yeah, a scan over just the index itself would be a perfect way to
> > gather stats.  The normal objection to it (can't tell whether entries
> > correspond to currently-valid tuples) doesn't apply, because we don't
> > really care whether the stats are perfectly accurate.
> > 
> > Should put this in TODO, along with something about splitting the
> > ANALYZE function out of VACUUM and making it invokable as a separate
> > statement.
> 
> Added:
> 
> * Remove ANALYZE from VACUUM so it can be run separately without locks
> * Gather more accurate statistics using indexes
>

Gathering statistics using indexes on-fly is best.
However VACUUM(without ANALYZE) already scans all indexes using
vc_scanoneind()/vc_vaconeind().  Isn't it availble anyway ?

Regards.

Hiroshi Inoue
Inoue@tpf.co.jp



view thread (18+ messages)  latest in thread

Message-ID: <000301bfc6a5$bb1ce600$2801007e@tpf.co.jp>
Permalink:  ../000301bfc6a5$bb1ce600$2801007e@tpf.co.jp/
Also on:    postgresql.org/message-id/000301bfc6a5$bb1ce600$2801007e@tpf.co.jp

 · 

reply

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-sql@postgresql.org
  Cc: Inoue@tpf.co.jp, pgman@candle.pha.pa.us, tgl@sss.pgh.pa.us, vmikheev@SECTORBASE.COM, ryan_bradetich@hp.com
  Subject: Re: Use of index in 7.0 vs 6.5
  In-Reply-To: <000301bfc6a5$bb1ce600$2801007e@tpf.co.jp>
  References: <200005251608.MAA25042@candle.pha.pa.us> <000301bfc6a5$bb1ce600$2801007e@tpf.co.jp>

* 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