~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/include/bootstrap/bootstrap.h

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
 *
 
3
 * bootstrap.h
 
4
 *        include file for the bootstrapping code
 
5
 *
 
6
 *
 
7
 * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
 
8
 * Portions Copyright (c) 1994, Regents of the University of California
 
9
 *
 
10
 * $PostgreSQL: pgsql/src/include/bootstrap/bootstrap.h,v 1.39 2004-12-31 22:03:22 pgsql Exp $
 
11
 *
 
12
 *-------------------------------------------------------------------------
 
13
 */
 
14
#ifndef BOOTSTRAP_H
 
15
#define BOOTSTRAP_H
 
16
 
 
17
#include "access/itup.h"
 
18
#include "nodes/execnodes.h"
 
19
#include "utils/rel.h"
 
20
 
 
21
/*
 
22
 * MAXATTR is the maximum number of attributes in a relation supported
 
23
 * at bootstrap time (i.e., the max possible in a system table).
 
24
 */
 
25
#define MAXATTR 40
 
26
 
 
27
typedef struct hashnode
 
28
{
 
29
        int                     strnum;                 /* Index into string table */
 
30
        struct hashnode *next;
 
31
} hashnode;
 
32
 
 
33
 
 
34
extern Relation boot_reldesc;
 
35
extern Form_pg_attribute attrtypes[MAXATTR];
 
36
extern int      numattr;
 
37
extern int      BootstrapMain(int argc, char *argv[]);
 
38
 
 
39
extern void index_register(Oid heap, Oid ind, IndexInfo *indexInfo);
 
40
 
 
41
extern void err_out(void);
 
42
extern void InsertOneTuple(Oid objectid);
 
43
extern void closerel(char *name);
 
44
extern void boot_openrel(char *name);
 
45
extern char *LexIDStr(int ident_num);
 
46
 
 
47
extern void DefineAttr(char *name, char *type, int attnum);
 
48
extern void InsertOneValue(char *value, int i);
 
49
extern void InsertOneNull(int i);
 
50
extern char *MapArrayTypeName(char *s);
 
51
extern char *CleanUpStr(char *s);
 
52
extern int      EnterString(char *str);
 
53
extern void build_indices(void);
 
54
 
 
55
extern int      Int_yylex(void);
 
56
extern void Int_yyerror(const char *str);
 
57
 
 
58
#define BS_XLOG_NOP                     0
 
59
#define BS_XLOG_BOOTSTRAP       1
 
60
#define BS_XLOG_STARTUP         2
 
61
#define BS_XLOG_BGWRITER        3
 
62
 
 
63
#endif   /* BOOTSTRAP_H */