From f64b8403871fbb8a5cd475f58dd432a53549a60d Mon Sep 17 00:00:00 2001 From: Bryan Henderson Date: Thu, 14 Nov 1996 10:25:54 +0000 Subject: 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. --- src/include/miscadmin.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/include/miscadmin.h') diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h index da88c6f824..844340f9ef 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); -- cgit v1.2.1