aboutsummaryrefslogtreecommitdiff
path: root/src/include/miscadmin.h
diff options
context:
space:
mode:
authorBryan Henderson <bryanh@giraffe.netgate.net>1996-11-14 10:25:54 +0000
committerBryan Henderson <bryanh@giraffe.netgate.net>1996-11-14 10:25:54 +0000
commitf64b8403871fbb8a5cd475f58dd432a53549a60d (patch)
tree038ebc1218e286105fdba624a7a53cd7d26518a2 /src/include/miscadmin.h
parent7ac541daf1b0bba6274f280eedba01166f97cbe8 (diff)
downloadpostgresql-f64b8403871fbb8a5cd475f58dd432a53549a60d.tar.gz
postgresql-f64b8403871fbb8a5cd475f58dd432a53549a60d.zip
Remove most compile-time options, add a few runtime options to make up for it.
In particular, no more compiled-in default for PGDATA or LIBDIR. Commands that need them need either invocation options or environment variables. PGPORT default is hardcoded as 5432, but overrideable with options or environment variables.
Diffstat (limited to 'src/include/miscadmin.h')
-rw-r--r--src/include/miscadmin.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h
index da88c6f824d..844340f9ef0 100644
--- a/src/include/miscadmin.h
+++ b/src/include/miscadmin.h
@@ -4,7 +4,6 @@
* this file contains general postgres administration and initialization
* stuff that used to be spread out between the following files:
* globals.h global variables
- * magic.h PG_RELEASE, PG_VERSION, etc defines
* pdir.h directory path crud
* pinit.h postgres initialization
* pmod.h processing modes
@@ -12,7 +11,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: miscadmin.h,v 1.3 1996/11/12 06:47:10 bryanh Exp $
+ * $Id: miscadmin.h,v 1.4 1996/11/14 10:25:42 bryanh Exp $
*
* NOTES
* some of the information in this file will be moved to
@@ -36,13 +35,12 @@ extern int PostmasterMain(int argc, char* argv[]);
* from utils/init/globals.c
*/
extern int Portfd;
-extern int Noversion; /* moved from magic.c */
-extern int MasterPid; /* declared and defined in utils/initglobals.c */
+extern int Noversion;
+extern int MasterPid;
extern int Quiet;
extern char *DataDir;
extern char OutputFileName[];
-extern void InitGlobals(void);
/*
* done in storage/backendid.h for now.
@@ -83,8 +81,6 @@ extern char *GetPgUserName(void);
extern void SetPgUserName(void);
extern Oid GetUserId(void);
extern void SetUserId(void);
-extern char *GetPGHome(void);
-extern char *GetPGData(void);
extern int ValidateBackend(char *path);
extern int FindBackend(char *backend, char *argv0);
extern int CheckPathAccess(char *path, char *name, int open_mode);