From: Josh Berkus <josh@agliodbs.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgreSQL.org
Subject: Re: Odd problem with performance in duplicate database
Date: Mon, 11 Aug 2003 17:43:48 -0700
Message-ID: <200308111743.48564.josh@agliodbs.com> (raw)
In-Reply-To: <27573.1060648162@sss.pgh.pa.us>
References: <ENEDIMLCODBHILEONAOMAEBNCEAA.pdarley@kinesis-cem.com>
<200308111716.22288.josh@agliodbs.com>
<27573.1060648162@sss.pgh.pa.us>
Tom,
> Partly. The numbers suggest that in ANALYZE's default sample of 3000
> rows, it's only finding about a dozen non-null tgroup_ids (yielding the
> 0.996 null_frac value); and that in one case all dozen are different and
> in the other case there are two duplicates. It would help if you
> boosted the stats target for this column by a factor of 10. (You can
> do that in 7.2, btw --- IIRC the only problem is that a pg_dump won't
> show that you did so.)
Also, there doesn't seem to be any way in 7.2 for me to find out what the
current statistics target for a column is. What am I missing?
--
-Josh Berkus
Aglio Database Solutions
San Francisco
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: josh@agliodbs.com, tgl@sss.pgh.pa.us
Subject: Re: Odd problem with performance in duplicate database
In-Reply-To: <200308111743.48564.josh@agliodbs.com>
References: <ENEDIMLCODBHILEONAOMAEBNCEAA.pdarley@kinesis-cem.com> <200308111716.22288.josh@agliodbs.com> <27573.1060648162@sss.pgh.pa.us> <200308111743.48564.josh@agliodbs.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