Skip site navigation (1) Skip section navigation (2)

Removing special case OID generation

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Removing special case OID generation
Date: 2012-02-07 13:46:09
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Recent events have made me notice the OID handling.

AFAICS, OIDs are just a sequence with a max value that fits in a uint.

So ISTM that we should just strip out the OID handling code and just
have a system sequence defined like this

   MAXVALUE 4294967296
   CACHE 8192

Which would then make it easier to have a sequence for each toast
table and a sequence for lobs.

Not sure its important now, but maybe it will reduce the size of the
executable and avoid oid-specific bugs.

 Simon Riggs         
 PostgreSQL Development, 24x7 Support, Training & Services


pgsql-hackers by date

Next:From: David FetterDate: 2012-02-07 13:56:52
Subject: Re: semi-PoC: kNN-gist for cubes
Previous:From: Fujii MasaoDate: 2012-02-07 13:10:09
Subject: Re: incorrect handling of the timeout in pg_receivexlog

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group