pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gaetano Mendola <mendola@bigfoot.com>
To: josh@agliodbs.com
Cc: pgsql-performance@postgresql.org
Subject: Re: best statistic target for boolean columns
Date: Mon, 27 Sep 2004 22:41:25 +0200
Message-ID: <41587AF5.3060904@bigfoot.com> (raw)
In-Reply-To: <200409271131.09932.josh@agliodbs.com>
References: <cj9l1m$qc3$1@floppy.pyrenet.fr>
	<200409271131.09932.josh@agliodbs.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Josh Berkus wrote:
| Gaetano,
|
|
|>don't you think the best statistic target for a boolean
|>column is something like 2?  Or in general the is useless
|>have a statistics target > data type cardinality ?
|
|
| It depends, really, on the proportionality of the boolean values; if they're
| about equal, I certainly wouldn't raise Stats from the default of 10.   If,
| however, it's very dispraportionate -- like 2% true and 98% false -- then it
| may pay to have better statistics so that the planner doesn't assume 50%
| hits, which it otherwise might.

So, I didn't understand how the statistics hystogram works.
I'm going to take a look at analyze.c


Regards
Gaetano Mendola


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBWHr07UpzwH2SGd4RAi8nAJoDOa7j+5IjDEcqBvB4ATXRzRPB+wCfWZ0p
OCmUew9zlyqVkxB9iWKoGAw=
=7lkZ
-----END PGP SIGNATURE-----




view thread (8+ messages)  latest in thread

Message-ID: <41587AF5.3060904@bigfoot.com>
Permalink:  ../41587AF5.3060904@bigfoot.com/
Also on:    postgresql.org/message-id/41587AF5.3060904@bigfoot.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: mendola@bigfoot.com, josh@agliodbs.com
  Subject: Re: best statistic target for boolean columns
  In-Reply-To: <41587AF5.3060904@bigfoot.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