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



---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org

Reply via email to