1 /*-------------------------------------------------------------------------
4 * global variable declarations
6 * Copyright (c) 1994, Regents of the University of California
10 * $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.6 1997/03/18 16:35:46 scrappy Exp $
13 * Globals used all over the place should be declared here and not
16 *-------------------------------------------------------------------------
22 #include <sys/types.h>
27 #include "miscadmin.h" /* where the declarations go */
29 #include <storage/backendid.h>
30 #include "access/heapam.h"
31 #include "utils/tqual.h"
32 #include "storage/sinval.h"
33 #include "storage/sinvaladt.h"
34 #include "storage/lmgr.h"
35 #include "utils/elog.h"
37 #include "catalog/catname.h"
45 /* The PGDATA directory user says to use, or defaults to via environment
46 variable. NULL if no option given and no environment variable set
48 Relation reldesc; /* current relation descriptor */
50 char OutputFileName[MAXPGPATH] = "";
52 BackendId MyBackendId;
53 BackendTag MyBackendTag;
55 char *UserName = NULL;
56 char *DatabaseName = NULL;
57 char *DatabasePath = NULL;
59 bool MyDatabaseIdIsInitialized = false;
60 Oid MyDatabaseId = InvalidOid;
61 bool TransactionInitWasProcessed = false;
63 bool IsUnderPostmaster = false;
64 bool IsPostmaster = false;
68 bool EuroDates = false;
69 bool HasCTZSet = false;
70 bool CDayLight = false;
74 char *IndexedCatalogNames[] = {
75 AttributeRelationName,
76 ProcedureRelationName,
84 * we just do a linear search now so there's no requirement that the list
85 * be ordered. The list is so small it shouldn't make much difference.
86 * make sure the list is null-terminated
90 * WARNING WARNING WARNING WARNING WARNING WARNING
92 * keep SharedSystemRelationNames[] in SORTED order! A binary search
93 * is done on it in catalog.c!
95 * XXX this is a serious hack which should be fixed -cim 1/26/90
98 char *SharedSystemRelationNames[] = {
100 DefaultsRelationName,
109 VariableRelationName,