mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
Remove useless LockDisable() function and associated overhead, per my
proposal of 26-Aug.
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: miscadmin.h,v 1.91 2001/09/21 03:32:36 tgl Exp $
|
||||
* $Id: miscadmin.h,v 1.92 2001/09/27 16:29:13 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
* some of the information in this file should be moved to
|
||||
@ -236,6 +236,7 @@ extern bool is_dbadmin(Oid dbid); /* current user is owner of database */
|
||||
* pmod.h -- *
|
||||
* POSTGRES processing mode definitions. *
|
||||
*****************************************************************************/
|
||||
|
||||
/*
|
||||
* Description:
|
||||
* There are three processing modes in POSTGRES. They are
|
||||
@ -262,19 +263,6 @@ typedef enum ProcessingMode
|
||||
NormalProcessing /* normal processing */
|
||||
} ProcessingMode;
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
* pinit.h -- *
|
||||
* POSTGRES initialization and cleanup definitions. *
|
||||
*****************************************************************************/
|
||||
|
||||
/* in utils/init/postinit.c */
|
||||
extern int lockingOff;
|
||||
|
||||
extern void InitPostgres(const char *dbname, const char *username);
|
||||
extern void BaseInit(void);
|
||||
|
||||
/* processing mode support stuff */
|
||||
extern ProcessingMode Mode;
|
||||
|
||||
#define IsBootstrapProcessingMode() ((bool)(Mode == BootstrapProcessing))
|
||||
@ -291,6 +279,17 @@ extern ProcessingMode Mode;
|
||||
|
||||
#define GetProcessingMode() Mode
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
* pinit.h -- *
|
||||
* POSTGRES initialization and cleanup definitions. *
|
||||
*****************************************************************************/
|
||||
|
||||
/* in utils/init/postinit.c */
|
||||
extern void InitPostgres(const char *dbname, const char *username);
|
||||
extern void BaseInit(void);
|
||||
|
||||
/* in utils/init/miscinit.c */
|
||||
extern bool CreateDataDirLockFile(const char *datadir, bool amPostmaster);
|
||||
extern bool CreateSocketLockFile(const char *socketfile, bool amPostmaster);
|
||||
extern void TouchSocketLockFile(void);
|
||||
|
Reference in New Issue
Block a user