Re: Better default_statistics_target - Mailing list pgsql-patches

From Gregory Stark
Subject Re: Better default_statistics_target
Date
Msg-id 87ejemvega.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: Better default_statistics_target  (Simon Riggs <simon@2ndquadrant.com>)
List pgsql-patches
"Simon Riggs" <simon@2ndquadrant.com> writes:

> Long text fields that might use LIKE should be set to 100. CHAR(1) and
> general fields should be set to 10.

I could see arguing that either way. Longer fields are capable of more
precision and so may need more buckets to predict. On the other hand longer
fields take more space and take longer to compare so to make consistent use of
resources you would want to avoid storing and comparing large numbers of them
whereas you could afford much larger targets for small quick columns.

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com
  Ask me about EnterpriseDB's Slony Replication support!

pgsql-patches by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Better default_statistics_target
Next
From: Andrew Dunstan
Date:
Subject: Re: [HACKERS] fulltext parser strange behave