Re: Solving OID wrap-around in 7.4 DB?

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: Solving OID wrap-around in 7.4 DB?
Дата
Msg-id 20051018161351.GG3441@phlogiston.dyndns.org
обсуждение исходный текст
Ответ на Solving OID wrap-around in 7.4 DB?  (Jeff Boes <jeff@endpoint.com>)
Список 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@crankycanuck.ca
Information security isn't a technological problem.  It's an economics
problem.
        --Bruce Schneier

В списке pgsql-admin по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: postmaster blues after system restart
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: PostgreSQL running in the background....