pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mary Edie Meredith <maryedie@osdl.org>
Cc: pgsql-performance <pgsql-performance@postgresql.org>
Cc: osdldbt-general <osdldbt-general@lists.sourceforge.net>
Subject: Re: [GENERAL] how to get accurate values in pg_statistic (continued)
Date: Fri, 05 Sep 2003 14:38:15 -0400
Message-ID: <7126.1062787095@sss.pgh.pa.us> (raw)
In-Reply-To: <1062783865.6854.4780.camel@ibm-e.pdx.osdl.net>
References: <1062697270.6854.3475.camel@ibm-e.pdx.osdl.net>
	<11537.1062717375@sss.pgh.pa.us>
	<1062783865.6854.4780.camel@ibm-e.pdx.osdl.net>

Mary Edie Meredith <maryedie@osdl.org> writes:
> For our testing purposes, however, consistent results are extremely
> important. We have observed that small difference in one plan for one of
> 22 queries can cause a difference in the DBT-3 results.  If this
> happens, a small change in performance runs between two Linux kernels
> may appear to be due to the kernels, when in fact it is due to the plan
> change.  

Fair enough.  If you are trying to force exactly repeatable results,
why don't you just "set seed = 0" before you ANALYZE?  There's only
one random-number generator, so that should force ANALYZE to make the
same random sampling every time.

Also, it'd be a good idea to ANALYZE the needed tables by name,
explicitly, to ensure that they are analyzed in a known order
rather than whatever order ANALYZE happens to find them in pg_class.

			regards, tom lane



view thread (22+ messages)  latest in thread

Message-ID: <7126.1062787095@sss.pgh.pa.us>
Permalink:  ../7126.1062787095@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7126.1062787095@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 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: tgl@sss.pgh.pa.us, maryedie@osdl.org, osdldbt-general@lists.sourceforge.net
  Subject: Re: [GENERAL] how to get accurate values in pg_statistic (continued)
  In-Reply-To: <7126.1062787095@sss.pgh.pa.us>
  References: <1062697270.6854.3475.camel@ibm-e.pdx.osdl.net> <11537.1062717375@sss.pgh.pa.us> <1062783865.6854.4780.camel@ibm-e.pdx.osdl.net> <7126.1062787095@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