From: bsmith@h-e.com
To: pgsql-admin@postgresql.org
Subject: VACUUM question, OID range
Date: Mon, 31 Dec 2001 17:22:38 -0800
Message-ID: <000001447373092692958@h-e.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: bsmith@h-e.com
Subject: Re: VACUUM question, OID range
In-Reply-To: <000001447373092692958@h-e.com>
References: <000001447373092692958@h-e.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox