Re: An Idea for OID conflicts - Mailing list pgsql-hackers

From Neil Conway
Subject Re: An Idea for OID conflicts
Date
Msg-id 1158611286.5274.16.camel@localhost.localdomain
Whole thread Raw
In response to Re: An Idea for OID conflicts  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Mon, 2006-09-18 at 14:10 -0400, Andrew Dunstan wrote:
> My idea was to have a file called reserved_oids.h which would contain 
> lines like:
> 
> #error "do not include this file anywhere"
> CATALOG(reserved_for_foo_module,9876) /* 2006-09-18 */
> 
> and which would be examined by the unused_oids script.

Or you needn't even use a header file -- presumably it wouldn't actually
be included by any C source files, so you could just keep the reserved
OIDs as a newline-separated text file. We'd probably want to design the
file format to avoid unnecessary patch conflicts when reserved OID
ranges are removed.

I wonder if the additional committer burden of maintaining this file is
worth it -- personally this problem rarely occurs in practice for me,
and when it does, it is easily resolved via the existing scripts for
finding duplicate and unused OIDs.

-Neil




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: An Idea for OID conflicts
Next
From: "Merlin Moncure"
Date:
Subject: Re: 8.2 beta blockers