diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-03-21 23:27:25 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-03-21 23:27:25 +0000 |
commit | 56c9b73c1d426c79a604df6d6f36293dd9f18754 (patch) | |
tree | e381610845e8693ec025af08f4ddc405247461d9 /src/include/utils/syscache.h | |
parent | 6137ed1b591920d919e437fbf6e2ea07de44a883 (diff) |
Change the aclchk.c routines to uniformly use OIDs to identify the
objects to be privilege-checked. Some change in their APIs would be
necessary no matter what in the schema environment, and simply getting
rid of the name-based interface entirely seems like the best way.
Diffstat (limited to 'src/include/utils/syscache.h')
-rw-r--r-- | src/include/utils/syscache.h | 58 |
1 files changed, 30 insertions, 28 deletions
diff --git a/src/include/utils/syscache.h b/src/include/utils/syscache.h index 6164c02b152..d4bcd14256e 100644 --- a/src/include/utils/syscache.h +++ b/src/include/utils/syscache.h @@ -9,7 +9,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: syscache.h,v 1.37 2002/02/19 20:11:20 tgl Exp $ + * $Id: syscache.h,v 1.38 2002/03/21 23:27:25 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -29,33 +29,35 @@ */ #define AGGNAME 0 -#define AMNAME 1 -#define AMOID 2 -#define AMOPOPID 3 -#define AMOPSTRATEGY 4 -#define AMPROCNUM 5 -#define ATTNAME 6 -#define ATTNUM 7 -#define CLAAMNAME 8 -#define CLAOID 9 -#define GRONAME 10 -#define GROSYSID 11 -#define INDEXRELID 12 -#define INHRELID 13 -#define LANGNAME 14 -#define LANGOID 15 -#define OPERNAME 16 -#define OPEROID 17 -#define PROCNAME 18 -#define PROCOID 19 -#define RELNAME 20 -#define RELOID 21 -#define RULENAME 22 -#define SHADOWNAME 23 -#define SHADOWSYSID 24 -#define STATRELATT 25 -#define TYPENAME 26 -#define TYPEOID 27 +#define AGGOID 1 +#define AMNAME 2 +#define AMOID 3 +#define AMOPOPID 4 +#define AMOPSTRATEGY 5 +#define AMPROCNUM 6 +#define ATTNAME 7 +#define ATTNUM 8 +#define CLAAMNAME 9 +#define CLAOID 10 +#define GRONAME 11 +#define GROSYSID 12 +#define INDEXRELID 13 +#define INHRELID 14 +#define LANGNAME 15 +#define LANGOID 16 +#define OPERNAME 17 +#define OPEROID 18 +#define PROCNAME 19 +#define PROCOID 20 +#define RELNAME 21 +#define RELOID 22 +#define RULENAME 23 +#define SHADOWNAME 24 +#define SHADOWSYSID 25 +#define STATRELATT 26 +#define TYPENAME 27 +#define TYPEOID 28 + extern void InitCatalogCache(void); extern void InitCatalogCachePhase2(void); |