Re: Solving OID wrap-around in 7.4 DB?

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Solving OID wrap-around in 7.4 DB?
Date: 2005-10-18 16:13:51
Message-ID: 20051018161351.GG3441@phlogiston.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Sun, Oct 16, 2005 at 07:28:00AM -0400, Jeff Boes wrote:
> On behalf of a previous employer who, due to major downsizing, is left
> without an answer to this:
>
> What's the best way to treat impending OID wrap-around in a 7.4.8
> database? This DB has been online for about 18 months, and is expected
> to hit the dreaded wrap-around in about a month. At an application

How many OIDs have been recovered? If the answer is "none" (i.e. the
database doesn't have many deletes), then there isn't likely much you
can do about it -- reloading the database is going to cause the same
problem.

As Chris says in another message, you can use Slony to replicate the
database, in order not to have a long outage. Note, too, that since
you say most tables don't actually use this pg_oid_status method, you
can get away with creating most of the tables without OIDs, which
will stave off your problem for a while. That'd probably even help
if the database mostly just grows, depending (of course) on where the
growth is.

A

--
Andrew Sullivan | ajs(at)crankycanuck(dot)ca
Information security isn't a technological problem. It's an economics
problem.
--Bruce Schneier

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tomeh, Husam 2005-10-18 20:24:11 Re: scripts and ~/.psqlrc
Previous Message Tom Lane 2005-10-18 15:17:40 Re: postmaster blues after system restart