Fix ancient bug in handling of to_char modifier 'TH', when used with HH.
[PostgreSQL.git] / src / include / bootstrap / bootstrap.h
blobb43408f12970f703ae3f6b3e19a5546c4ad85efa
1 /*-------------------------------------------------------------------------
3 * bootstrap.h
4 * include file for the bootstrapping code
7 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * $PostgreSQL$
12 *-------------------------------------------------------------------------
14 #ifndef BOOTSTRAP_H
15 #define BOOTSTRAP_H
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).
23 #define MAXATTR 40
25 typedef struct hashnode
27 int strnum; /* Index into string table */
28 struct hashnode *next;
29 } hashnode;
32 extern Relation boot_reldesc;
33 extern Form_pg_attribute attrtypes[MAXATTR];
34 extern int numattr;
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,
54 int16 *typlen,
55 bool *typbyval,
56 char *typalign,
57 char *typdelim,
58 Oid *typioparam,
59 Oid *typinput,
60 Oid *typoutput);
62 extern int boot_yyparse(void);
64 extern int boot_yylex(void);
65 extern void boot_yyerror(const char *str);
67 typedef enum
69 CheckerProcess,
70 BootstrapProcess,
71 StartupProcess,
72 BgWriterProcess,
73 WalWriterProcess
74 } AuxProcType;
76 #endif /* BOOTSTRAP_H */