1 /*-------------------------------------------------------------------------
4 * include file for the bootstrapping code
7 * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * $PostgreSQL: pgsql/src/include/bootstrap/bootstrap.h,v 1.33 2003/11/29 22:40:56 pgsql Exp $
12 *-------------------------------------------------------------------------
17 #include "access/itup.h"
18 #include "nodes/execnodes.h"
19 #include "utils/rel.h"
22 * MAXATTR is the maximum number of attributes in a relation supported
23 * at bootstrap time (i.e., the max possible in a system table).
27 typedef struct hashnode
29 int strnum; /* Index into string table */
30 struct hashnode *next;
34 extern Relation boot_reldesc;
35 extern Form_pg_attribute attrtypes[MAXATTR];
37 extern int BootstrapMain(int ac, char *av[]);
39 extern void index_register(Oid heap, Oid ind, IndexInfo *indexInfo);
41 extern void err_out(void);
42 extern void InsertOneTuple(Oid objectid);
43 extern void closerel(char *name);
44 extern void boot_openrel(char *name);
45 extern char *LexIDStr(int ident_num);
47 extern void DefineAttr(char *name, char *type, int attnum);
48 extern void InsertOneValue(char *value, int i);
49 extern void InsertOneNull(int i);
50 extern char *MapArrayTypeName(char *s);
51 extern char *CleanUpStr(char *s);
52 extern int EnterString(char *str);
53 extern void build_indices(void);
55 extern int Int_yylex(void);
56 extern void Int_yyerror(const char *str);
59 #define BS_XLOG_BOOTSTRAP 1
60 #define BS_XLOG_STARTUP 2
61 #define BS_XLOG_CHECKPOINT 3
62 #define BS_XLOG_BGWRITER 4
63 #define BS_XLOG_SHUTDOWN 5
65 #endif /* BOOTSTRAP_H */