Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 96AA8475E4E for ; Fri, 28 Jun 2002 17:26:06 -0400 (EDT) Mailbox-Line: From tgl@sss.pgh.pa.us Fri Jun 28 17:26:06 2002 Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 19F1B477533 for ; Fri, 28 Jun 2002 17:06:58 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g5SL6xD09706; Fri, 28 Jun 2002 17:06:59 -0400 (EDT) To: Ray Ontko Cc: pgsql-admin@postgresql.org Subject: Re: Are statistics gathered on function indexes? In-reply-to: <200206282103.QAA07922@shire.ontko.com> References: <200206282103.QAA07922@shire.ontko.com> Comments: In-reply-to Ray Ontko message dated "Fri, 28 Jun 2002 16:03:55 -0500" Date: Fri, 28 Jun 2002 17:06:58 -0400 Message-ID: <9703.1025298418@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-5.4 required=5.0 tests=IN_REP_TO,X_NOT_PRESENT,SUBJ_ENDS_IN_Q_MARK version=2.30 X-Spam-Level: X-Archive-Number: 200206/249 X-Sequence-Number: 4682 Ray Ontko writes: > Well, that explains the non-determinism, I guess. It seems > odd that if we aren't doing any updates to the data that analyze > would give us different stats. How does analyze pick the 3000 > rows it gets back, and should this vary from run to run if we > aren't changing the table? At random, and yes. See the documentation ... regards, tom lane