Re: meaning of default_statistics_target

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Martin Marques <martin(at)marquesminen(dot)com(dot)ar>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: meaning of default_statistics_target
Date: 2008-04-28 14:57:39
Message-ID: 20080428145739.GA5761@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Martin Marques escribió:

> Is the value measured in some scale, or does it depend on something
> internal? What does 1000 mean?

1000 histogram and MCV entries, and also a larger sample:

>> Increasing the target also increases the number of rows that ANALYZE
>> samples to prepare the stats, so you should theoretically get more
>> accurate stats for the other columns too, even though they'll still get
>> boiled down to the same array lengths as before.

How larger is the sample, I don't know.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2008-04-28 15:48:29 Re: How to modify ENUM datatypes?
Previous Message Martin Marques 2008-04-28 14:49:22 Re: meaning of default_statistics_target