1996-07-09 08:22:35 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01: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
|
|
|
*
|
|
|
|
*
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
2000-01-26 06:58:53 +01:00
|
|
|
* $Id: bootstrap.h,v 1.17 2000/01/26 05:57:53 momjian Exp $
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef BOOTSTRAP_H
|
|
|
|
#define BOOTSTRAP_H
|
|
|
|
|
1999-07-16 01:04:24 +02: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;
|
1998-09-01 05:29:17 +02:00
|
|
|
extern Form_pg_attribute 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-09-01 06:40:42 +02: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
|
|
|
|
2000-01-20 06:34:32 +01:00
|
|
|
extern int Int_yylex(void);
|
|
|
|
extern void Int_yyerror(const char *str);
|
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* BOOTSTRAP_H */
|