mirror of
https://github.com/postgres/postgres.git
synced 2025-08-18 12:22:09 +03:00
Cleanup the bootstrap code a little, and rename "dummy procs" in the code
comments and variables to "auxiliary proc", per Heikki's request.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/bootstrap/bootstrap.h,v 1.45 2007/01/05 22:19:51 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/include/bootstrap/bootstrap.h,v 1.46 2007/03/07 13:35:03 alvherre Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -32,7 +32,7 @@ typedef struct hashnode
|
||||
extern Relation boot_reldesc;
|
||||
extern Form_pg_attribute attrtypes[MAXATTR];
|
||||
extern int numattr;
|
||||
extern int BootstrapMain(int argc, char *argv[]);
|
||||
extern void AuxiliaryProcessMain(int argc, char *argv[]);
|
||||
|
||||
extern void index_register(Oid heap, Oid ind, IndexInfo *indexInfo);
|
||||
|
||||
@@ -64,9 +64,12 @@ extern int boot_yyparse(void);
|
||||
extern int boot_yylex(void);
|
||||
extern void boot_yyerror(const char *str);
|
||||
|
||||
#define BS_XLOG_NOP 0
|
||||
#define BS_XLOG_BOOTSTRAP 1
|
||||
#define BS_XLOG_STARTUP 2
|
||||
#define BS_XLOG_BGWRITER 3
|
||||
typedef enum
|
||||
{
|
||||
CheckerProcess,
|
||||
BootstrapProcess,
|
||||
StartupProcess,
|
||||
BgWriterProcess
|
||||
} AuxProcType;
|
||||
|
||||
#endif /* BOOTSTRAP_H */
|
||||
|
Reference in New Issue
Block a user