PostgreSQL Source Code  git master
bootstrap.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * bootstrap.h
4  * include file for the bootstrapping code
5  *
6  *
7  * Portions Copyright (c) 1996-2017, 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 
20 /*
21  * MAXATTR is the maximum number of attributes in a relation supported
22  * at bootstrap time (i.e., the max possible in a system table).
23  */
24 #define MAXATTR 40
25 
26 #define BOOTCOL_NULL_AUTO 1
27 #define BOOTCOL_NULL_FORCE_NULL 2
28 #define BOOTCOL_NULL_FORCE_NOT_NULL 3
29 
30 extern Relation boot_reldesc;
32 extern int numattr;
33 
34 
35 extern void AuxiliaryProcessMain(int argc, char *argv[]) pg_attribute_noreturn();
36 
37 extern void err_out(void);
38 
39 extern void closerel(char *name);
40 extern void boot_openrel(char *name);
41 
42 extern void DefineAttr(char *name, char *type, int attnum, int nullness);
43 extern void InsertOneTuple(Oid objectid);
44 extern void InsertOneValue(char *value, int i);
45 extern void InsertOneNull(int i);
46 
47 extern char *MapArrayTypeName(const char *s);
48 
49 extern void index_register(Oid heap, Oid ind, IndexInfo *indexInfo);
50 extern void build_indices(void);
51 
52 extern void boot_get_type_io_data(Oid typid,
53  int16 *typlen,
54  bool *typbyval,
55  char *typalign,
56  char *typdelim,
57  Oid *typioparam,
58  Oid *typinput,
59  Oid *typoutput);
60 
61 extern int boot_yyparse(void);
62 
63 extern int boot_yylex(void);
64 extern void boot_yyerror(const char *str) pg_attribute_noreturn();
65 
66 #endif /* BOOTSTRAP_H */
signed short int16
Definition: c.h:283
Relation boot_reldesc
Definition: bootstrap.c:71
void boot_get_type_io_data(Oid typid, int16 *typlen, bool *typbyval, char *typalign, char *typdelim, Oid *typioparam, Oid *typinput, Oid *typoutput)
Definition: bootstrap.c:957
void build_indices(void)
Definition: bootstrap.c:1129
int boot_yyparse(void)
void InsertOneValue(char *value, int i)
Definition: bootstrap.c:817
unsigned int Oid
Definition: postgres_ext.h:31
void InsertOneNull(int i)
Definition: bootstrap.c:855
Form_pg_attribute attrtypes[MAXATTR]
Definition: bootstrap.c:73
void index_register(Oid heap, Oid ind, IndexInfo *indexInfo)
Definition: bootstrap.c:1079
static struct @121 value
FormData_pg_attribute * Form_pg_attribute
Definition: pg_attribute.h:187
#define MAXATTR
Definition: bootstrap.h:24
void err_out(void)
void boot_yyerror(const char *str) pg_attribute_noreturn()
void closerel(char *name)
Definition: bootstrap.c:643
void boot_openrel(char *name)
Definition: bootstrap.c:574
char * MapArrayTypeName(const char *s)
Definition: bootstrap.c:1050
void AuxiliaryProcessMain(int argc, char *argv[]) pg_attribute_noreturn()
Definition: bootstrap.c:195
const char * name
Definition: encode.c:521
#define pg_attribute_noreturn()
Definition: c.h:146
int i
int boot_yylex(void)
int numattr
Definition: bootstrap.c:74
void InsertOneTuple(Oid objectid)
Definition: bootstrap.c:785
void DefineAttr(char *name, char *type, int attnum, int nullness)
Definition: bootstrap.c:680