1 /*-------------------------------------------------------------------------
4 * include file for the bootstrapping code
7 * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * $Id: bootstrap.h,v 1.18 2000/06/17 23:41:49 tgl Exp $
12 *-------------------------------------------------------------------------
17 #include "access/funcindex.h"
18 #include "access/itup.h"
19 #include "utils/rel.h"
21 #define MAXATTR 40 /* max. number of attributes in a relation */
23 typedef struct hashnode
25 int strnum; /* Index into string table */
26 struct hashnode *next;
29 #define EMITPROMPT printf("> ")
31 extern Relation reldesc;
32 extern Form_pg_attribute attrtypes[MAXATTR];
36 extern int BootstrapMain(int ac, char *av[]);
38 extern void index_register(char *heap, char *ind,
39 int natts, AttrNumber *attnos,
40 FuncIndexInfo *finfo, PredInfo *predInfo,
43 extern void err_out(void);
44 extern void InsertOneTuple(Oid objectid);
45 extern void closerel(char *name);
46 extern void boot_openrel(char *name);
47 extern char *LexIDStr(int ident_num);
49 extern void DefineAttr(char *name, char *type, int attnum);
50 extern void InsertOneValue(Oid objectid, char *value, int i);
51 extern void InsertOneNull(int i);
52 extern char *MapArrayTypeName(char *s);
53 extern char *CleanUpStr(char *s);
54 extern int EnterString(char *str);
55 extern void build_indices(void);
57 extern int Int_yylex(void);
58 extern void Int_yyerror(const char *str);
60 #endif /* BOOTSTRAP_H */