Re: OID's - Mailing list pgsql-general

From Tom Lane
Subject Re: OID's
Date
Msg-id 26628.1098556597@sss.pgh.pa.us
Whole thread Raw
In response to Re: OID's  (Mike Nolan <nolan@gw.tssi.com>)
List pgsql-general
Mike Nolan <nolan@gw.tssi.com> writes:
>> You are correct.  nextval() is guaranteed never to give the same number
>> (unless setval() were used to reset the sequence value).

> Or unless the sequence wraps around.  That's less likely (and less
> dangerous) than having the OID wrap around, but not impossible.

Sequences do not wrap by default (only if you use the CYCLE option).
Anyway, if you use a bigint sequence field you are pretty safe from ever
running out of values...

            regards, tom lane

pgsql-general by date:

Previous
From: Dennis Bjorklund
Date:
Subject: Re: OID's
Next
From: "Vassilev, Lubomir G."
Date:
Subject: how to port Oracle database to PostgreSQL?