1996-07-09 02:22:35 -04:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
|
*
|
1999-02-13 18:22:53 -05:00
|
|
|
* bootstrap.h
|
1997-09-07 01:04:48 -04:00
|
|
|
* include file for the bootstrapping code
|
1996-07-09 02:22:35 -04:00
|
|
|
*
|
|
|
|
|
*
|
2011-01-01 13:18:15 -05:00
|
|
|
* Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group
|
2000-01-26 00:58:53 -05:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-07-09 02:22:35 -04:00
|
|
|
*
|
2010-09-20 16:08:53 -04:00
|
|
|
* src/include/bootstrap/bootstrap.h
|
1996-07-09 02:22:35 -04:00
|
|
|
*
|
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
#ifndef BOOTSTRAP_H
|
|
|
|
|
#define BOOTSTRAP_H
|
|
|
|
|
|
2000-07-14 18:18:02 -04:00
|
|
|
#include "nodes/execnodes.h"
|
1996-07-09 02:22:35 -04:00
|
|
|
|
2009-09-26 21:32:11 -04:00
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
CheckerProcess,
|
|
|
|
|
BootstrapProcess,
|
|
|
|
|
StartupProcess,
|
|
|
|
|
BgWriterProcess,
|
|
|
|
|
WalWriterProcess,
|
2010-01-15 04:19:10 -05:00
|
|
|
WalReceiverProcess,
|
2009-09-26 21:32:11 -04:00
|
|
|
|
|
|
|
|
NUM_AUXPROCTYPES /* Must be last! */
|
|
|
|
|
} AuxProcType;
|
|
|
|
|
|
2001-05-11 21:48:49 -04:00
|
|
|
/*
|
|
|
|
|
* MAXATTR is the maximum number of attributes in a relation supported
|
|
|
|
|
* at bootstrap time (i.e., the max possible in a system table).
|
2000-07-14 18:18:02 -04:00
|
|
|
*/
|
|
|
|
|
#define MAXATTR 40
|
1996-07-09 02:22:35 -04:00
|
|
|
|
2002-04-27 17:24:34 -04:00
|
|
|
extern Relation boot_reldesc;
|
1998-08-31 23:29:17 -04:00
|
|
|
extern Form_pg_attribute attrtypes[MAXATTR];
|
1997-09-07 22:41:22 -04:00
|
|
|
extern int numattr;
|
2000-06-17 19:41:51 -04:00
|
|
|
|
2009-09-26 21:32:11 -04:00
|
|
|
|
|
|
|
|
extern void AuxiliaryProcessMain(int argc, char *argv[]);
|
1997-09-07 01:04:48 -04:00
|
|
|
|
1997-09-07 22:41:22 -04:00
|
|
|
extern void err_out(void);
|
2009-09-26 21:32:11 -04:00
|
|
|
|
1997-09-07 22:41:22 -04:00
|
|
|
extern void closerel(char *name);
|
|
|
|
|
extern void boot_openrel(char *name);
|
|
|
|
|
|
|
|
|
|
extern void DefineAttr(char *name, char *type, int attnum);
|
2009-09-26 21:32:11 -04:00
|
|
|
extern void InsertOneTuple(Oid objectid);
|
2001-08-10 14:57:42 -04:00
|
|
|
extern void InsertOneValue(char *value, int i);
|
1997-09-07 22:41:22 -04:00
|
|
|
extern void InsertOneNull(int i);
|
2009-09-26 21:32:11 -04:00
|
|
|
|
1997-09-07 22:41:22 -04:00
|
|
|
extern char *MapArrayTypeName(char *s);
|
2009-09-26 21:32:11 -04:00
|
|
|
|
|
|
|
|
extern void index_register(Oid heap, Oid ind, IndexInfo *indexInfo);
|
1997-09-07 22:41:22 -04:00
|
|
|
extern void build_indices(void);
|
1997-09-07 01:04:48 -04:00
|
|
|
|
2006-08-15 18:36:17 -04:00
|
|
|
extern void boot_get_type_io_data(Oid typid,
|
2006-10-03 20:30:14 -04:00
|
|
|
int16 *typlen,
|
|
|
|
|
bool *typbyval,
|
|
|
|
|
char *typalign,
|
|
|
|
|
char *typdelim,
|
|
|
|
|
Oid *typioparam,
|
|
|
|
|
Oid *typinput,
|
|
|
|
|
Oid *typoutput);
|
2006-08-15 18:36:17 -04:00
|
|
|
|
2006-03-06 20:03:12 -05:00
|
|
|
extern int boot_yyparse(void);
|
|
|
|
|
|
|
|
|
|
extern int boot_yylex(void);
|
|
|
|
|
extern void boot_yyerror(const char *str);
|
2000-01-20 00:34:32 -05:00
|
|
|
|
2001-11-05 12:46:40 -05:00
|
|
|
#endif /* BOOTSTRAP_H */
|