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
|
|
|
*
|
|
|
|
*
|
2015-01-06 17:43:47 +01:00
|
|
|
* Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
2010-09-20 22:08:53 +02:00
|
|
|
* src/include/bootstrap/bootstrap.h
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef BOOTSTRAP_H
|
|
|
|
#define BOOTSTRAP_H
|
|
|
|
|
2000-07-15 00:18:02 +02:00
|
|
|
#include "nodes/execnodes.h"
|
1996-07-09 08:22:35 +02:00
|
|
|
|
2009-09-27 03:32:11 +02:00
|
|
|
|
2001-05-12 03:48:49 +02:00
|
|
|
/*
|
|
|
|
* MAXATTR is the maximum number of attributes in a relation supported
|
|
|
|
* at bootstrap time (i.e., the max possible in a system table).
|
2000-07-15 00:18:02 +02:00
|
|
|
*/
|
|
|
|
#define MAXATTR 40
|
1996-07-09 08:22:35 +02:00
|
|
|
|
2015-02-21 22:25:49 +01:00
|
|
|
#define BOOTCOL_NULL_AUTO 1
|
|
|
|
#define BOOTCOL_NULL_FORCE_NULL 2
|
|
|
|
#define BOOTCOL_NULL_FORCE_NOT_NULL 3
|
|
|
|
|
2002-04-27 23:24:34 +02:00
|
|
|
extern Relation boot_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;
|
2000-06-18 01:41:51 +02:00
|
|
|
|
2009-09-27 03:32:11 +02:00
|
|
|
|
2015-03-11 14:19:54 +01:00
|
|
|
extern void AuxiliaryProcessMain(int argc, char *argv[]) pg_attribute_noreturn;
|
1997-09-07 07:04:48 +02:00
|
|
|
|
1997-09-08 04:41:22 +02:00
|
|
|
extern void err_out(void);
|
2009-09-27 03:32:11 +02:00
|
|
|
|
1997-09-08 04:41:22 +02:00
|
|
|
extern void closerel(char *name);
|
|
|
|
extern void boot_openrel(char *name);
|
|
|
|
|
2015-02-21 22:25:49 +01:00
|
|
|
extern void DefineAttr(char *name, char *type, int attnum, int nullness);
|
2009-09-27 03:32:11 +02:00
|
|
|
extern void InsertOneTuple(Oid objectid);
|
2001-08-10 20:57:42 +02:00
|
|
|
extern void InsertOneValue(char *value, int i);
|
1997-09-08 04:41:22 +02:00
|
|
|
extern void InsertOneNull(int i);
|
2009-09-27 03:32:11 +02:00
|
|
|
|
2014-12-16 21:35:33 +01:00
|
|
|
extern char *MapArrayTypeName(const char *s);
|
2009-09-27 03:32:11 +02:00
|
|
|
|
|
|
|
extern void index_register(Oid heap, Oid ind, IndexInfo *indexInfo);
|
1997-09-08 04:41:22 +02:00
|
|
|
extern void build_indices(void);
|
1997-09-07 07:04:48 +02:00
|
|
|
|
2006-08-16 00:36:17 +02:00
|
|
|
extern void boot_get_type_io_data(Oid typid,
|
2006-10-04 02:30:14 +02:00
|
|
|
int16 *typlen,
|
|
|
|
bool *typbyval,
|
|
|
|
char *typalign,
|
|
|
|
char *typdelim,
|
|
|
|
Oid *typioparam,
|
|
|
|
Oid *typinput,
|
|
|
|
Oid *typoutput);
|
2006-08-16 00:36:17 +02:00
|
|
|
|
2006-03-07 02:03:12 +01:00
|
|
|
extern int boot_yyparse(void);
|
|
|
|
|
|
|
|
extern int boot_yylex(void);
|
2015-03-11 14:19:54 +01:00
|
|
|
extern void boot_yyerror(const char *str) pg_attribute_noreturn;
|
2000-01-20 06:34:32 +01:00
|
|
|
|
2001-11-05 18:46:40 +01:00
|
|
|
#endif /* BOOTSTRAP_H */
|