]> granicus.if.org Git - postgresql/blob - src/include/bootstrap/bootstrap.h
Update copyright notices for year 2012.
[postgresql] / src / include / bootstrap / bootstrap.h
1 /*-------------------------------------------------------------------------
2  *
3  * bootstrap.h
4  *        include file for the bootstrapping code
5  *
6  *
7  * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/bootstrap/bootstrap.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef BOOTSTRAP_H
15 #define BOOTSTRAP_H
16
17 #include "nodes/execnodes.h"
18
19 typedef enum
20 {
21         CheckerProcess,
22         BootstrapProcess,
23         StartupProcess,
24         BgWriterProcess,
25         CheckpointerProcess,
26         WalWriterProcess,
27         WalReceiverProcess,
28
29         NUM_AUXPROCTYPES                        /* Must be last! */
30 } AuxProcType;
31
32 /*
33  * MAXATTR is the maximum number of attributes in a relation supported
34  * at bootstrap time (i.e., the max possible in a system table).
35  */
36 #define MAXATTR 40
37
38 extern Relation boot_reldesc;
39 extern Form_pg_attribute attrtypes[MAXATTR];
40 extern int      numattr;
41
42
43 extern void AuxiliaryProcessMain(int argc, char *argv[]);
44
45 extern void err_out(void);
46
47 extern void closerel(char *name);
48 extern void boot_openrel(char *name);
49
50 extern void DefineAttr(char *name, char *type, int attnum);
51 extern void InsertOneTuple(Oid objectid);
52 extern void InsertOneValue(char *value, int i);
53 extern void InsertOneNull(int i);
54
55 extern char *MapArrayTypeName(char *s);
56
57 extern void index_register(Oid heap, Oid ind, IndexInfo *indexInfo);
58 extern void build_indices(void);
59
60 extern void boot_get_type_io_data(Oid typid,
61                                           int16 *typlen,
62                                           bool *typbyval,
63                                           char *typalign,
64                                           char *typdelim,
65                                           Oid *typioparam,
66                                           Oid *typinput,
67                                           Oid *typoutput);
68
69 extern int      boot_yyparse(void);
70
71 extern int      boot_yylex(void);
72 extern void boot_yyerror(const char *str);
73
74 #endif   /* BOOTSTRAP_H */