Re: OID's - Mailing list pgsql-general

From Mike Nolan
Subject Re: OID's
Date
Msg-id 200410231732.i9NHWwWT030353@gw.tssi.com
Whole thread Raw
In response to Re: OID's  (Oliver Elphick <olly@lfix.co.uk>)
Responses Re: OID's
Re: OID's
List pgsql-general
> 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.

I personally believe that there is value in a database-generated unique
value like Oracle's ROWID.  (Part of what I like about it is that since
it is a system column it simplifies some application issues, since the
app never has to worry about that column unless it chooses to.)

Making the OID sufficiently large to avoid virtually all wraparound
issues would probably mean going to a 64 bit field, which would certainly
be a non-trivial task.
--
Mike Nolan

pgsql-general by date:

Previous
From: "A. Mous"
Date:
Subject: Win installed pgsql 8.0 beta2 dev3
Next
From: "Gary Doades"
Date:
Subject: Re: Win installed pgsql 8.0 beta2 dev3