codekingpro/portable-devtools
115k
1/*-------------------------------------------------------------------------2 *3 * bootstrap.h4 * include file for the bootstrapping code5 *6 *7 * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group8 * Portions Copyright (c) 1994, Regents of the University of California9 *10 * src/include/bootstrap/bootstrap.h11 *12 *-------------------------------------------------------------------------13 */14#ifndef BOOTSTRAP_H15#define BOOTSTRAP_H16 17#include "nodes/execnodes.h"18 19 20/*21 * MAXATTR is the maximum number of attributes in a relation supported22 * at bootstrap time (i.e., the max possible in a system table).23 */24#define MAXATTR 4025 26#define BOOTCOL_NULL_AUTO 127#define BOOTCOL_NULL_FORCE_NULL 228#define BOOTCOL_NULL_FORCE_NOT_NULL 329 30extern PGDLLIMPORT Relation boot_reldesc;31extern PGDLLIMPORT Form_pg_attribute attrtypes[MAXATTR];32extern PGDLLIMPORT int numattr;33 34 35extern void BootstrapModeMain(int argc, char *argv[], bool check_only) pg_attribute_noreturn();36 37extern void closerel(char *relname);38extern void boot_openrel(char *relname);39 40extern void DefineAttr(char *name, char *type, int attnum, int nullness);41extern void InsertOneTuple(void);42extern void InsertOneValue(char *value, int i);43extern void InsertOneNull(int i);44 45extern void index_register(Oid heap, Oid ind, IndexInfo *indexInfo);46extern void build_indices(void);47 48extern void boot_get_type_io_data(Oid typid,49 int16 *typlen,50 bool *typbyval,51 char *typalign,52 char *typdelim,53 Oid *typioparam,54 Oid *typinput,55 Oid *typoutput);56 57extern int boot_yyparse(void);58 59extern int boot_yylex(void);60extern void boot_yyerror(const char *message) pg_attribute_noreturn();61 62#endif /* BOOTSTRAP_H */63 