pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Shridhar Daithankar <shridhar_daithankar@myrealbox.com>
Cc: pgsql-performance@postgresql.org, PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: More detail on settings for pgavd?
Date: Thu, 20 Nov 2003 10:00:34 -0800
Message-ID: <200311201000.34694.josh@agliodbs.com> (raw)
In-Reply-To: <3FBC6BED.9090809@myrealbox.com>
References: <200311181558.45847.josh@agliodbs.com>
	<200311190906.15828.josh@agliodbs.com>
	<3FBC6BED.9090809@myrealbox.com>

Shridhar,

> I would say -V 0.2-0.4 could be great as well. Fact to emphasize is that
> thresholds less than 1 should be used.

Yes, but not thresholds, scale factors of less than 1.0.  Thresholds should 
still be in the range of 100 to 1000.

> I will submit a patch that would account deletes in analyze threshold.
> Since you want to delay the analyze, I would calculate analyze count as
>
> n=updates + inserts *-* deletes

I'm not clear on how this is a benefit.  Deletes affect the statistics, too.

> What does statistics gather BTW? Just number of rows or something else as
> well? I think I would put that on Hackers separately.

Number of tuples, degree of uniqueness, some sample values, and high/low 
values.   Just query your pg_statistics view for an example.

> I am still wary of inverting vacuum analyze frequency. You think it is
> better to set inverted default rather than documenting it?

See my post to Matthew.

-- 
Josh Berkus
Aglio Database Solutions
San Francisco



view thread (35+ messages)  latest in thread

Message-ID: <200311201000.34694.josh@agliodbs.com>
Permalink:  ../200311201000.34694.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200311201000.34694.josh@agliodbs.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: josh@agliodbs.com, shridhar_daithankar@myrealbox.com, pgsql-hackers@postgresql.org
  Subject: Re: More detail on settings for pgavd?
  In-Reply-To: <200311201000.34694.josh@agliodbs.com>

* 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