1996-07-09 08:22:35 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* bootstrap.h--
|
1997-09-07 07:04:48 +02:00
|
|
|
* include file for the bootstrapping code
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
1998-01-24 23:50:57 +01:00
|
|
|
* $Id: bootstrap.h,v 1.10 1998/01/24 22:48:15 momjian Exp $
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef BOOTSTRAP_H
|
|
|
|
#define BOOTSTRAP_H
|
|
|
|
|
1996-11-08 07:43:28 +01:00
|
|
|
#include <access/funcindex.h>
|
|
|
|
#include <access/itup.h>
|
|
|
|
#include <utils/rel.h>
|
1996-07-09 08:22:35 +02:00
|
|
|
|
1997-09-07 07:04:48 +02:00
|
|
|
#define MAXATTR 40 /* max. number of attributes in a relation */
|
1996-07-09 08:22:35 +02:00
|
|
|
|
1997-09-07 07:04:48 +02:00
|
|
|
typedef struct hashnode
|
|
|
|
{
|
1997-09-08 04:41:22 +02:00
|
|
|
int strnum; /* Index into string table */
|
1997-09-07 07:04:48 +02:00
|
|
|
struct hashnode *next;
|
1997-09-08 23:56:23 +02:00
|
|
|
} hashnode;
|
1996-07-09 08:22:35 +02:00
|
|
|
|
|
|
|
#define EMITPROMPT printf("> ")
|
|
|
|
|
|
|
|
extern Relation reldesc;
|
|
|
|
extern AttributeTupleForm attrtypes[MAXATTR];
|
1997-09-08 04:41:22 +02:00
|
|
|
extern int numattr;
|
|
|
|
extern int DebugMode;
|
1996-07-09 08:22:35 +02:00
|
|
|
|
1997-09-08 04:41:22 +02:00
|
|
|
extern int BootstrapMain(int ac, char *av[]);
|
1998-01-24 23:50:57 +01:00
|
|
|
extern void index_register(char *heap,
|
1996-07-09 08:22:35 +02:00
|
|
|
char *ind,
|
|
|
|
int natts,
|
1997-09-08 22:59:27 +02:00
|
|
|
AttrNumber *attnos,
|
1996-07-09 08:22:35 +02:00
|
|
|
uint16 nparams,
|
1997-09-08 23:56:23 +02:00
|
|
|
Datum *params,
|
|
|
|
FuncIndexInfo *finfo,
|
|
|
|
PredInfo *predInfo);
|
1997-09-07 07:04:48 +02:00
|
|
|
|
1997-09-08 04:41:22 +02:00
|
|
|
extern void err_out(void);
|
|
|
|
extern void InsertOneTuple(Oid objectid);
|
|
|
|
extern void closerel(char *name);
|
|
|
|
extern void boot_openrel(char *name);
|
|
|
|
extern char *LexIDStr(int ident_num);
|
|
|
|
|
|
|
|
extern void DefineAttr(char *name, char *type, int attnum);
|
|
|
|
extern void InsertOneValue(Oid objectid, char *value, int i);
|
|
|
|
extern void InsertOneNull(int i);
|
|
|
|
extern char *MapArrayTypeName(char *s);
|
|
|
|
extern char *CleanUpStr(char *s);
|
|
|
|
extern int EnterString(char *str);
|
|
|
|
extern void build_indices(void);
|
1997-09-07 07:04:48 +02:00
|
|
|
|
|
|
|
#endif /* BOOTSTRAP_H */
|