]> granicus.if.org Git - postgresql/blob - src/include/bootstrap/bootstrap.h
Get rid of IndexIsUniqueNoCache() kluge by the simple expedient of
[postgresql] / src / include / bootstrap / bootstrap.h
1 /*-------------------------------------------------------------------------
2  *
3  * bootstrap.h
4  *        include file for the bootstrapping code
5  *
6  *
7  * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * $Id: bootstrap.h,v 1.18 2000/06/17 23:41:49 tgl Exp $
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef BOOTSTRAP_H
15 #define BOOTSTRAP_H
16
17 #include "access/funcindex.h"
18 #include "access/itup.h"
19 #include "utils/rel.h"
20
21 #define MAXATTR 40                              /* max. number of attributes in a relation */
22
23 typedef struct hashnode
24 {
25         int                     strnum;                 /* Index into string table */
26         struct hashnode *next;
27 } hashnode;
28
29 #define EMITPROMPT printf("> ")
30
31 extern Relation reldesc;
32 extern Form_pg_attribute attrtypes[MAXATTR];
33 extern int      numattr;
34 extern int      DebugMode;
35
36 extern int      BootstrapMain(int ac, char *av[]);
37
38 extern void index_register(char *heap, char *ind,
39                                                    int natts, AttrNumber *attnos,
40                                                    FuncIndexInfo *finfo, PredInfo *predInfo,
41                                                    bool unique);
42
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);
48
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);
56
57 extern int      Int_yylex(void);
58 extern void Int_yyerror(const char *str);
59
60 #endif   /* BOOTSTRAP_H */