mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
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.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user