Re: maximum number of rows in table - what about oid limits? - Mailing list pgsql-sql

From Josh Berkus
Subject Re: maximum number of rows in table - what about oid limits?
Date
Msg-id web-68254@davinci.ethosmedia.com
Whole thread Raw
In response to Re: maximum number of rows in table - what about oid limits?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: maximum number of rows in table - what about oid limits?
List pgsql-sql
Tom, Stephan,

> What can happen after a wrap is that the OID generated for a
> newly-created object might conflict with some already-existing
> object's
> OID.  If that happens, you get a duplicate-key-insertion error on the
> OID index of the relevant system catalog (pg_class, pg_type, etc).
> There is a unique index on OID for each system catalog wherein OID
> is used to identify objects.  It doesn't really matter whether the
> same OID is reused in different catalogs or in user tables.

Given this, why bother with system-generated OIDs on user rows at all?
Why not simply reserve the OIDs for the system tables?

Or are you planning to later increase the OIDs to INT8 and start using
them for OODB-analogous behavior on individual records?

> This is certainly not ideal, but it's not nearly as big a problem as
> transaction ID wraparound.  You can live with it, whereas right now
> xact ID wraparound is catastrophic.  That we gotta work on, soon.

Nothing like reassuring us commercial DB users, Tom.  :-P

Can you describe what you're talking about?

-Josh

______AGLIO DATABASE SOLUTIONS___________________________                                      Josh Berkus Complete
informationtechnology      josh@agliodbs.com  and data management solutions       (415) 565-7293 for law firms, small
businesses       fax 621-2533   and non-profit organizations.      San Francisco
 


pgsql-sql by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: How to create a *pass-through-query* in postgresql
Next
From: Mark Stosberg
Date:
Subject: behavior of ' = NULL' vs. MySQL vs. Standards