Re: Postgresqlism & Vacuum? - Mailing list pgsql-general

From Lincoln Yeoh
Subject Re: Postgresqlism & Vacuum?
Date
Msg-id 3.0.5.32.20000417091442.008e3d40@pop.mecomb.po.my
Whole thread Raw
In response to Re: Postgresqlism & Vacuum?  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-general
At 01:23 PM 14-04-2000 -0400, Bruce Momjian wrote:
>
>> Perhaps its time for the two functions to be separated - controlled by an
>> option?
>> Perhaps VACUUM STATONLY could collect stats, not lock table and not reclaim
>> space.
>
>Makes sense.

Actually it may be more logical to have
VACUUM        reclaim
VACUUM ANALYZE     reclaim then analyze (for downward compatibility)
ANALYZE     just analyze

But I still think that some sort of stats could be used dynamically. Even
if the stats aren't optimal (e.g. don't know which MVCC copy to use), using
them should be better than nothing in most cases. In the cases which don't
work then just do a manual analyze - people are already used to doing it
regularly as it's a postgresqlism ;). There are probably only extremely
few/unusual cases where such automatic stats would make things slower.

Well, OK I could be totally wrong - I'm far from a database expert and
don't have a wide experience of databases.

Cheerio,

Link.



pgsql-general by date:

Previous
From: "John Henderson"
Date:
Subject: Re: To BLOB Or Not To BLOB
Next
From: Lincoln Yeoh
Date:
Subject: Re: To BLOB Or Not To BLOB