Re: vacuum analyze again... - Mailing list pgsql-general

From Bruce Momjian
Subject Re: vacuum analyze again...
Date
Msg-id 200102201755.MAA10089@candle.pha.pa.us
Whole thread Raw
In response to Re: vacuum analyze again...  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: vacuum analyze again...  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
> Bruce Momjian writes:
>
> > No, we have no ability to randomly pick rows to use for estimating
> > statistics.  Should we have this ability?
>
> How's reading a sufficiently large fraction of random rows going to be
> significantly faster than reading all rows?  If you're just going to read
> the first n rows then that isn't really random, is it?

Ingres did this too, I thought.  You could specify a certain number of
random rows, perhaps 10%.  On a large table, that is often good enough
and much faster.  Often 2% is enough.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  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

pgsql-general by date:

Previous
From: "Rod Taylor"
Date:
Subject: Re: strategies for keeping an audit trail of UPDATEs
Next
From: Peter Eisentraut
Date:
Subject: Re: Re: A How-To: PostgreSQL from Tcl via ODBC