Re: Reset oid , starting value=1 -- Max. Number of OID

From: "Gellert, Andre" <AGellert(at)ElectronicPartner(dot)de>
To: 'Martijn van Oosterhout' <kleptog(at)svana(dot)org>
Cc: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Reset oid , starting value=1 -- Max. Number of OID
Date: 2003-12-09 13:52:35
Message-ID: 2740724BDE77EC4CB3CF41EA2227845730AE90@NT-VISEXCH
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> The only way to reset oids is to destroy the entire data directory and
> initdb again. In recent versions you can create tables
> without oids, thus
> reducing their usage.

Today we have oid's > 2147483647 , what happens, if we have more than
allowed ? I remember it was about 4 billions max. oid's, will Postgres
refresh itself or will it produce errors like "max. records inserted" ???

PS: My solution : I moved the applications data to another server ;-) with
only 1.970.230.087 used OIDs , the application is being fixed at the moment
(a typecast to int is used on nearly every page).

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John Sidney-Woollett 2003-12-09 14:01:25 Re: Select for update Question
Previous Message Teodor Sigaev 2003-12-09 13:18:20 Re: Full textsearch & gist (fwd)