pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Josh Berkus <josh@agliodbs.com>
Cc: Manfred Koizar <mkoi-pg@aon.at>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: Greg Stark <gsstark@mit.edu>
Cc: Marko Ristola <marko.ristola@kolumbus.fi>
Cc: pgsql-perform <pgsql-performance@postgresql.org>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] Bad n_distinct estimation; hacks suggested?
Date: Mon, 25 Apr 2005 00:59:27 -0400
Message-ID: <10257.1114405167@sss.pgh.pa.us> (raw)
In-Reply-To: <200504241208.15437.josh@agliodbs.com>
References: <200504191209.05181.josh@agliodbs.com>
	<25382.1114318139@sss.pgh.pa.us>
	<426BDE32.4070004@dunslane.net>
	<200504241208.15437.josh@agliodbs.com>

Josh Berkus <josh@agliodbs.com> writes:
> Tom, how does our heuristic sampling work?   Is it pure random sampling, or 
> page sampling?

Manfred probably remembers better than I do, but I think the idea is
to approximate pure random sampling as best we can without actually
examining every page of the table.

			regards, tom lane



view thread (53+ messages)  latest in thread

Message-ID: <10257.1114405167@sss.pgh.pa.us>
Permalink:  ../10257.1114405167@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10257.1114405167@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, josh@agliodbs.com, mkoi-pg@aon.at, andrew@dunslane.net, gsstark@mit.edu, marko.ristola@kolumbus.fi, pgsql-hackers@postgresql.org
  Subject: Re: [HACKERS] Bad n_distinct estimation; hacks suggested?
  In-Reply-To: <10257.1114405167@sss.pgh.pa.us>

* 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