Re: Reset oid , starting value=1

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
Date: 2003-12-09 11:32:58
Message-ID: 2740724BDE77EC4CB3CF41EA2227845730AE88@NT-VISEXCH
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Martijn,

> > There must be a global value which sets the last oid, i need to set this
to
> > "1" or to fill up from 1 , so i have no oids >= 2147483647 for the near
> > future.. how can i do this ? Fixing the mentioned above will take more
time.
>
> 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.

So pg_dump all databases, initdb and playback ? This means a offline-time
for my
systems. Do i need to backup template1 , too ?

> Hope this helps,

To be honest :-) : Not what i was hoping for ...

thx, Andre

Browse pgsql-general by date

  From Date Subject
Next Message John Sidney-Woollett 2003-12-09 11:47:49 Select for update Question
Previous Message Martijn van Oosterhout 2003-12-09 11:18:03 Re: Reset oid , starting value=1