Re: [HACKERS] Length of OID

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Meskes <meskes(at)postgreSQL(dot)org>
Cc: PostgreSQL Hacker <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] Length of OID
Date: 2000-01-27 23:09:26
Message-ID: 7100.949014566@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Michael Meskes <meskes(at)postgreSQL(dot)org> writes:
> I saw that it is a 4 byte integer on my site, but is that guaranteed?

Yes, for now anyway.

Eventually I'd like to see us offering 8-byte OIDs, because a DB that's
been running for a while could wrap around the OID counter and produce
duplicate OIDs :-(. But until support for 8-byte "long long int" is
pretty standard, I don't think we can do it without creating tremendous
portability problems.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Hiroshi Inoue 2000-01-27 23:59:23 RE: [SQL] RE: [GENERAL] Problem with SELECT on large negative INT4
Previous Message Kristofer Munn 2000-01-27 23:03:05 Orphaned files in the database...