Return-Path: owner-postman
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id JAA03717 for postgres-redist; Fri, 8 Jul 1994 09:34:23 -0700
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199407081634.JAA03717@nobozo.CS.Berkeley.EDU>
X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from uu7.psi.com (uu7.psi.com [38.145.204.6]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id JAA03707 for <postgres@postgres.Berkeley.EDU>; Fri, 8 Jul 1994 09:34:21 -0700
Received: from gate2.gdc.com by uu7.psi.com (5.65b/4.0.071791-PSI/PSINet) via SMTP;
        id AA14286 for postgres@postgres.Berkeley.EDU; Fri, 8 Jul 94 12:34:48 -0400
Received: from mailhost.gdc.com (esun19) by gdc.com (4.1/GDC.-C) via SMTP
	id AA00272; Fri, 8 Jul 94 12:34:10 EDT
Received: from esun44.gdc.com by mailhost.gdc.com (4.1/GDC-eInternal/A-)
	id AA17138; Fri, 8 Jul 94 12:34:09 EDT
Date: Fri, 8 Jul 94 12:34:09 EDT
From: brunner@gdc.com (Paul Brunner)
Message-Id: <9407081634.AA17138@mailhost.gdc.com>
To: postgres@postgres.Berkeley.EDU
Subject: vacuum command functions
Cc: brunner@gdc.com
Resent-To: postgres-redist@postgres.Berkeley.EDU
Resent-Date: Fri, 08 Jul 94 09:34:23 -0700
Resent-XMts: smtp

In the 4.2 release of POSTGRES from Berkeley, there is a vacuum command,
one of whose stated purposes is to update statistics on the database used by
the query optimizer to select the best execution plan.

I was reading a paper comparing university POSTGRES with the database system
produced by Illustra Software, Inc. (a commercialization of the POSTGRES
research software.) In the paper, it states that the POSTGRES vacuum command
never actually updates these statistics. Tests I've run show the attributes
of "relpages" and "reltuples" being updated by running the vacuum after
appending rows to classes.

Does the vacuum command indeed update the statistics to reflect the current 
state of the database, regardless of whatever kind of alterations have been
made to the data?


==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"

   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================
