VACUUM question, OID range - Mailing list pgsql-admin

From bsmith@h-e.com (Bob Smith, Hammett & Edison, Inc.)
Subject VACUUM question, OID range
Date
Msg-id 000001447373092692958@h-e.com
Whole thread Raw
List pgsql-admin
I have a db which has many tables that are mirrors of data from an
outside source.  I download text export files and do weekly updates
of the entire tables using TRUNCATE and COPY.  Is there any benefit
to a VACUUM ANALYZE immediately afterwards?  There are a number of
indices on these tables.  Do I ever benefit from VACUUM at all,
considering that the server never inserts/deletes rows from these
tables except during the update, which replaces every row?

Also, what happens if the OID value "rolls over"?  Each of these
updates consumes about 3,000,000 OIDs, which is not a problem for
weekly updates, but I've been asked to consider doing daily updates.
Assuming the OID range is 2^31, with daily updates the OID "rolls
over" in less than 2 years (maybe sooner, as there are several other
databases on the same server as well).  Nothing to panic about,
true, but I'd still like to know if I might eventually have to re-
build the whole site due to running out of OIDs.

The server is a P3-800, 768MB RAM, 80GB disk, running Red Hat 7.0
and PostgreSQL 7.0.2.

Thanks!

Bob Smith
Hammett & Edison, Inc.
bsmith@h-e.com

pgsql-admin by date:

Previous
From: reina@nsi.edu (Tony Reina)
Date:
Subject: Re: Allowing TCP/IP connections
Next
From: "Sipos Andras"
Date:
Subject: posgreSql doesn't start