From: Colin Freas <colinfreas@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: How to set the global OID counter? COPY WITH OIDS does
Date: Fri, 9 Jun 2006 10:49:49 -0400
Message-ID: <b27f65f70606090749x31011778m722dccbf11463748@mail.gmail.com> (raw)
In-Reply-To: <4489887D.6080505@aeccom.com>
References: <448976E3.50209@aeccom.com>
<20060609140015.GF19659@surnet.cl>
<9780.1149863199@sss.pgh.pa.us>
<4489887D.6080505@aeccom.com>
this is an important enough question that no one who asks it has to provide
an answer as to why they're doing it.
i can imagine many situations where this would be useful, not the least of
which is reliability testing. and ESPECIALLY since OID's apparently roll
over at 2^32. what happens if you have more than 4 billion rows in the
database?
that's totally unrelated to setting the oid counter though. come on. give
it up! how do you do it?
colin
On 6/9/06, Dirk Lutzebäck <lutzeb@aeccom.com> wrote:
>
> This is not a large object. We are seeing rows with duplicate oids
> because the OID counter is not changed after the dump (exported with --oids)
> is being loaded.
> How does 8.1 prevent to allocate duplicate OIDs?
>
> Regards,
>
> Dirk
>
> Tom Lane wrote:
>
> Alvaro Herrera <alvherre@commandprompt.com> <alvherre@commandprompt.com> writes:
>
> Dirk Lutzebäck wrote:
>
> how can one set the global OID counter in 8.1.X? We think it would work
> in 8.0.X using the COPY WITH OIDS command but this does not work in
> 8.1.X anymore.
>
> pg_resetxlog -o
> (Postmaster stopped of course)
>
> Possibly more to the point: why do you think you need to mess with the
> counter? 8.1 is smart enough not to assign conflicting OIDs to large
> objects.
>
> regards, tom lane
>
>
>
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: colinfreas@gmail.com
Subject: Re: How to set the global OID counter? COPY WITH OIDS does
In-Reply-To: <b27f65f70606090749x31011778m722dccbf11463748@mail.gmail.com>
References: <448976E3.50209@aeccom.com> <20060609140015.GF19659@surnet.cl> <9780.1149863199@sss.pgh.pa.us> <4489887D.6080505@aeccom.com> <b27f65f70606090749x31011778m722dccbf11463748@mail.gmail.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