diff options
Diffstat (limited to 'src/backend/utils/init/globals.c')
-rw-r--r-- | src/backend/utils/init/globals.c | 31 |
1 files changed, 11 insertions, 20 deletions
diff --git a/src/backend/utils/init/globals.c b/src/backend/utils/init/globals.c index 3efb52fcb9a..7dff67bffbc 100644 --- a/src/backend/utils/init/globals.c +++ b/src/backend/utils/init/globals.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.57 2001/05/14 20:30:21 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.58 2001/06/12 05:55:50 tgl Exp $ * * NOTES * Globals used all over the place should be declared here and not @@ -30,6 +30,7 @@ #include "miscadmin.h" #include "storage/backendid.h" + ProtocolVersion FrontendProtocol = PG_PROTOCOL_LATEST; bool Noversion = false; @@ -84,36 +85,26 @@ int SortMem = 512; int NBuffers = DEF_NBUFFERS; -char *IndexedCatalogNames[] = { - AttributeRelationName, - ProcedureRelationName, - TypeRelationName, - RelationRelationName, - 0 -}; - - /* ---------------- - * we just do a linear search now so there's no requirement that the list + * List of relations that are shared across all databases in an installation. + * + * This used to be binary-searched, requiring that it be kept in sorted order. + * We just do a linear search now so there's no requirement that the list * be ordered. The list is so small it shouldn't make much difference. * make sure the list is null-terminated * - jolly 8/19/95 - * - * OLD COMMENT - * WARNING WARNING WARNING WARNING WARNING WARNING - * - * keep SharedSystemRelationNames[] in SORTED order! A binary search - * is done on it in catalog.c! - * - * XXX this is a serious hack which should be fixed -cim 1/26/90 * ---------------- */ char *SharedSystemRelationNames[] = { DatabaseRelationName, + DatabaseNameIndex, + DatabaseOidIndex, GroupRelationName, GroupNameIndex, GroupSysidIndex, LogRelationName, ShadowRelationName, - 0 + ShadowNameIndex, + ShadowSysidIndex, + NULL }; |