Re: default_statistics_target

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Carlo Stonebanks <stonec(dot)register(at)sympatico(dot)ca>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: default_statistics_target
Date: 2010-03-25 15:44:30
Message-ID: 603c8f071003250844v4a4a1683vfc821cd99de0d998@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Mon, Mar 22, 2010 at 6:19 PM, Carlo Stonebanks
<stonec(dot)register(at)sympatico(dot)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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Brad Nicholson 2010-03-25 16:05:47 Re: Why Wal_buffer is 64KB
Previous Message Tadipathri Raghu 2010-03-25 15:01:18 Why Wal_buffer is 64KB