pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <robertmhaas@gmail.com>
To: Carlo Stonebanks <stonec.register@sympatico.ca>
Cc: pgsql-performance@postgresql.org
Subject: Re: default_statistics_target
Date: Thu, 25 Mar 2010 11:44:30 -0400
Message-ID: <603c8f071003250844v4a4a1683vfc821cd99de0d998@mail.gmail.com> (raw)
In-Reply-To: <ho8qaa$2ars$1@news.hub.org>
References: <hnjrcs$2trl$1@news.hub.org>
	<4B9E33AF.2020608@2ndquadrant.com>
	<ho8qaa$2ars$1@news.hub.org>

On Mon, Mar 22, 2010 at 6:19 PM, Carlo Stonebanks
<stonec.register@sympatico.ca> wrote:
> Thanks for the insight. How much more of a server's resources will be
> consumed by an ANALYZE with default_statistics_target = 100?

I don't think it will be much of a problem, especially since
autovacuum will do only the tables that need it and not all the same
time.  But you can certainly try it.  Before changing the global
setting, try just changing it for one session with SET:

\timing
ANALYZE <some table>;
SET default_statistics_target = 100;
ANALYZE <same table>;
\q

...Robert



view thread (5+ messages)

Message-ID: <603c8f071003250844v4a4a1683vfc821cd99de0d998@mail.gmail.com>
Permalink:  ../603c8f071003250844v4a4a1683vfc821cd99de0d998@mail.gmail.com/
Also on:    postgresql.org/message-id/603c8f071003250844v4a4a1683vfc821cd99de0d998@mail.gmail.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: robertmhaas@gmail.com, stonec.register@sympatico.ca
  Subject: Re: default_statistics_target
  In-Reply-To: <603c8f071003250844v4a4a1683vfc821cd99de0d998@mail.gmail.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