1 /*-------------------------------------------------------------------------
4 * include file for the bootstrapping code
7 * Copyright (c) 1994, Regents of the University of California
9 * $Id: bootstrap.h,v 1.13 1998/09/01 04:34:36 momjian Exp $
11 *-------------------------------------------------------------------------
16 #include <access/funcindex.h>
17 #include <access/itup.h>
18 #include <utils/rel.h>
20 #define MAXATTR 40 /* max. number of attributes in a relation */
22 typedef struct hashnode
24 int strnum; /* Index into string table */
25 struct hashnode *next;
28 #define EMITPROMPT printf("> ")
30 extern Relation reldesc;
31 extern Form_pg_attribute attrtypes[MAXATTR];
35 extern int BootstrapMain(int ac, char *av[]);
36 extern void index_register(char *heap,
45 extern void err_out(void);
46 extern void InsertOneTuple(Oid objectid);
47 extern void closerel(char *name);
48 extern void boot_openrel(char *name);
49 extern char *LexIDStr(int ident_num);
51 extern void DefineAttr(char *name, char *type, int attnum);
52 extern void InsertOneValue(Oid objectid, char *value, int i);
53 extern void InsertOneNull(int i);
54 extern char *MapArrayTypeName(char *s);
55 extern char *CleanUpStr(char *s);
56 extern int EnterString(char *str);
57 extern void build_indices(void);
59 #endif /* BOOTSTRAP_H */