X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 08F90D1B8E8 for ; Fri, 5 Sep 2003 21:02:20 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 26396-06 for ; Fri, 5 Sep 2003 18:02:09 -0300 (ADT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 1EB29D1B53A for ; Fri, 5 Sep 2003 18:02:08 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h85L22818312; Fri, 5 Sep 2003 17:02:02 -0400 (EDT) From: Bruce Momjian Message-Id: <200309052102.h85L22818312@candle.pha.pa.us> Subject: Re: [GENERAL] how to get accurate values in pg_statistic In-Reply-To: <16527.1062795349@sss.pgh.pa.us> To: Tom Lane Date: Fri, 5 Sep 2003 17:02:02 -0400 (EDT) Cc: Mary Edie Meredith , pgsql-performance , osdldbt-general X-Mailer: ELM [version 2.4ME+ PL106 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/105 X-Sequence-Number: 3471 Tom Lane wrote: > Bruce Momjian 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. Agreed. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073