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

pgsql: Convert the list of syscache names from a series of #define's

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Convert the list of syscache names from a series of #define's
Date: 2008-05-07 01:04:49
Message-ID: 20080507010449.E98C77559DA@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Convert the list of syscache names from a series of #define's into an enum,
to avoid the pain of manually renumbering them anytime we insert another
name in alphabetical order.  An excellent idea from Alex Hunsaker and
NikhilS' inherited-constraints patch --- whether or not the rest of that
gets in, this should.  Dunno why we never thought of it before.

Modified Files:
--------------
    pgsql/src/include/utils:
        syscache.h (r1.71 -> r1.72)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/utils/syscache.h?r1=1.71&r2=1.72)

pgsql-committers by date

Next:From: Tom LaneDate: 2008-05-07 01:46:04
Subject: pgsql: The CONSTROID syscache should show conrelid as a relation OID
Previous:From: User GleuDate: 2008-05-06 22:58:41
Subject: pgsnap - pgsnap: Add Google Analytics to pgsnap website.

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