From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: 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
Date: Fri, 05 Sep 2003 16:55:49 -0400
Message-ID: <16527.1062795349@sss.pgh.pa.us> (raw)
In-Reply-To: <200309052049.h85KnCv16810@candle.pha.pa.us>
References: <200309052049.h85KnCv16810@candle.pha.pa.us>
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> We do have:
> #geqo_random_seed = -1 # -1 = use variable seed
> that lets you force a specific random seed for testing purposes. I
> wonder if that could be extended to control VACUUM radomization too.
> Right now, it just controls GEQO and in fact gets reset on every
> optimizer run.
Actually, just the other day I was thinking we should take that out.
Since there is only one random number generator in the C library,
GEQO is messing with everyone else's state every time it decides to do
an srandom(). And there is certainly no need to do an explicit srandom
with a "random" seed every time through the optimizer, which is the
code's default behavior at the moment. That just decreases the
randomness AFAICS, compared to letting the established sequence run.
regards, tom lane
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, pgman@candle.pha.pa.us, maryedie@osdl.org, osdldbt-general@lists.sourceforge.net
Subject: Re: [GENERAL] how to get accurate values in pg_statistic
In-Reply-To: <16527.1062795349@sss.pgh.pa.us>
References: <200309052049.h85KnCv16810@candle.pha.pa.us> <16527.1062795349@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