1 /*-------------------------------------------------------------------------
4 * include file for the bootstrapping code
7 * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
12 *-------------------------------------------------------------------------
17 #include "nodes/execnodes.h"
20 * MAXATTR is the maximum number of attributes in a relation supported
21 * at bootstrap time (i.e., the max possible in a system table).
25 typedef struct hashnode
27 int strnum
; /* Index into string table */
28 struct hashnode
*next
;
32 extern Relation boot_reldesc
;
33 extern Form_pg_attribute attrtypes
[MAXATTR
];
35 extern void AuxiliaryProcessMain(int argc
, char *argv
[]);
37 extern void index_register(Oid heap
, Oid ind
, IndexInfo
*indexInfo
);
39 extern void err_out(void);
40 extern void InsertOneTuple(Oid objectid
);
41 extern void closerel(char *name
);
42 extern void boot_openrel(char *name
);
43 extern char *LexIDStr(int ident_num
);
45 extern void DefineAttr(char *name
, char *type
, int attnum
);
46 extern void InsertOneValue(char *value
, int i
);
47 extern void InsertOneNull(int i
);
48 extern char *MapArrayTypeName(char *s
);
49 extern char *CleanUpStr(char *s
);
50 extern int EnterString(char *str
);
51 extern void build_indices(void);
53 extern void boot_get_type_io_data(Oid typid
,
62 extern int boot_yyparse(void);
64 extern int boot_yylex(void);
65 extern void boot_yyerror(const char *str
);
76 #endif /* BOOTSTRAP_H */