Header And Logo

PostgreSQL
| The world's most advanced open source database.

bootstrap.h

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  * bootstrap.h
00004  *    include file for the bootstrapping code
00005  *
00006  *
00007  * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
00008  * Portions Copyright (c) 1994, Regents of the University of California
00009  *
00010  * src/include/bootstrap/bootstrap.h
00011  *
00012  *-------------------------------------------------------------------------
00013  */
00014 #ifndef BOOTSTRAP_H
00015 #define BOOTSTRAP_H
00016 
00017 #include "nodes/execnodes.h"
00018 
00019 
00020 /*
00021  * MAXATTR is the maximum number of attributes in a relation supported
00022  * at bootstrap time (i.e., the max possible in a system table).
00023  */
00024 #define MAXATTR 40
00025 
00026 extern Relation boot_reldesc;
00027 extern Form_pg_attribute attrtypes[MAXATTR];
00028 extern int  numattr;
00029 
00030 
00031 extern void AuxiliaryProcessMain(int argc, char *argv[]) __attribute__((noreturn));
00032 
00033 extern void err_out(void);
00034 
00035 extern void closerel(char *name);
00036 extern void boot_openrel(char *name);
00037 
00038 extern void DefineAttr(char *name, char *type, int attnum);
00039 extern void InsertOneTuple(Oid objectid);
00040 extern void InsertOneValue(char *value, int i);
00041 extern void InsertOneNull(int i);
00042 
00043 extern char *MapArrayTypeName(char *s);
00044 
00045 extern void index_register(Oid heap, Oid ind, IndexInfo *indexInfo);
00046 extern void build_indices(void);
00047 
00048 extern void boot_get_type_io_data(Oid typid,
00049                       int16 *typlen,
00050                       bool *typbyval,
00051                       char *typalign,
00052                       char *typdelim,
00053                       Oid *typioparam,
00054                       Oid *typinput,
00055                       Oid *typoutput);
00056 
00057 extern int  boot_yyparse(void);
00058 
00059 extern int  boot_yylex(void);
00060 extern void boot_yyerror(const char *str);
00061 
00062 #endif   /* BOOTSTRAP_H */