PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | MAXATTR 40 |
#define | BOOTCOL_NULL_AUTO 1 |
#define | BOOTCOL_NULL_FORCE_NULL 2 |
#define | BOOTCOL_NULL_FORCE_NOT_NULL 3 |
Functions | |
void | BootstrapModeMain (int argc, char *argv[], bool check_only) pg_attribute_noreturn() |
void | closerel (char *relname) |
void | boot_openrel (char *relname) |
void | DefineAttr (char *name, char *type, int attnum, int nullness) |
void | InsertOneTuple (void) |
void | InsertOneValue (char *value, int i) |
void | InsertOneNull (int i) |
void | index_register (Oid heap, Oid ind, const IndexInfo *indexInfo) |
void | build_indices (void) |
void | boot_get_type_io_data (Oid typid, int16 *typlen, bool *typbyval, char *typalign, char *typdelim, Oid *typioparam, Oid *typinput, Oid *typoutput) |
int | boot_yyparse (void) |
int | boot_yylex (void) |
void | boot_yyerror (const char *message) pg_attribute_noreturn() |
Variables | |
PGDLLIMPORT Relation | boot_reldesc |
PGDLLIMPORT Form_pg_attribute | attrtypes [MAXATTR] |
PGDLLIMPORT int | numattr |
#define BOOTCOL_NULL_AUTO 1 |
Definition at line 27 of file bootstrap.h.
#define BOOTCOL_NULL_FORCE_NOT_NULL 3 |
Definition at line 29 of file bootstrap.h.
#define BOOTCOL_NULL_FORCE_NULL 2 |
Definition at line 28 of file bootstrap.h.
#define MAXATTR 40 |
Definition at line 25 of file bootstrap.h.
void boot_get_type_io_data | ( | Oid | typid, |
int16 * | typlen, | ||
bool * | typbyval, | ||
char * | typalign, | ||
char * | typdelim, | ||
Oid * | typioparam, | ||
Oid * | typinput, | ||
Oid * | typoutput | ||
) |
Definition at line 807 of file bootstrap.c.
References typinfo::align, typmap::am_oid, typmap::am_typ, typinfo::byval, typinfo::elem, elog, ERROR, typinfo::inproc, typinfo::len, lfirst, n_types, NIL, OidIsValid, typinfo::outproc, Typ, typalign, and TypInfo.
Referenced by get_type_io_data(), and InsertOneValue().
void boot_openrel | ( | char * | relname | ) |
Definition at line 409 of file bootstrap.c.
References AllocateAttribute(), ATTRIBUTE_FIXED_PART_SIZE, attrtypes, boot_reldesc, closerel(), DEBUG4, elog, i, makeRangeVar(), NAMEDATALEN, NameStr, NIL, NoLock, numattr, populate_typ_list(), RelationData::rd_att, RelationGetNumberOfAttributes, relname, table_openrv(), TupleDescAttr, and Typ.
void boot_yyerror | ( | const char * | message | ) |
int boot_yylex | ( | void | ) |
int boot_yyparse | ( | void | ) |
Referenced by BootstrapModeMain().
void BootstrapModeMain | ( | int | argc, |
char * | argv[], | ||
bool | check_only | ||
) |
Definition at line 197 of file bootstrap.c.
References Assert, attrtypes, BaseInit(), boot_yyparse(), bootstrap_signals(), BootstrapProcessing, BootStrapXLOG(), ChangeToDataDir(), checkDataDir(), CheckerModeMain(), cleanup(), CommitTransactionCommand(), CreateDataDirLockFile(), CreateSharedMemoryAndSemaphores(), elog, ereport, errcode(), errmsg(), ERROR, flag(), getopt(), i, IgnoreSystemIndexes, InitializeFastPathLocks(), InitializeGUCOptions(), InitializeMaxBackends(), InitPostgres(), InitProcess(), InitStandaloneProcess(), InvalidOid, IsUnderPostmaster, MAXATTR, MAXPGPATH, name, NormalProcessing, Nulls, optarg, optind, OutputFileName, ParseLongOption(), pfree(), PG_DATA_CHECKSUM_VERSION, pg_link_canary_is_frontend(), PGC_INTERNAL, PGC_POSTMASTER, PGC_S_ARGV, PGC_S_DYNAMIC_DEFAULT, proc_exit(), progname, psprintf(), pstrdup(), RelationMapFinishBootstrap(), SelectConfigFiles(), SetConfigOption(), SetProcessingMode, StartTransactionCommand(), strlcpy(), userDoption, value, and write_stderr.
Referenced by main().
void build_indices | ( | void | ) |
Definition at line 952 of file bootstrap.c.
References _IndexList::il_heap, _IndexList::il_ind, _IndexList::il_info, _IndexList::il_next, ILHead, index_build(), index_close(), index_open(), NoLock, table_close(), and table_open().
void closerel | ( | char * | relname | ) |
Definition at line 454 of file bootstrap.c.
References boot_reldesc, DEBUG4, elog, ERROR, NoLock, RelationGetRelationName, relname, and table_close().
Referenced by boot_openrel(), cleanup(), and DefineAttr().
void DefineAttr | ( | char * | name, |
char * | type, | ||
int | attnum, | ||
int | nullness | ||
) |
Definition at line 491 of file bootstrap.c.
References typinfo::align, AllocateAttribute(), typmap::am_oid, typmap::am_typ, Ap, Assert, attlen, attname, attnotnull, attnum, ATTRIBUTE_FIXED_PART_SIZE, attrtypes, boot_reldesc, BOOTCOL_NULL_AUTO, BOOTCOL_NULL_FORCE_NOT_NULL, BOOTCOL_NULL_FORCE_NULL, typinfo::byval, closerel(), typinfo::collation, DEBUG4, elog, gettype(), i, InvalidCompressionMethod, InvalidOid, typinfo::len, MemSet, name, NameStr, namestrcpy(), NIL, typinfo::oid, OidIsValid, typinfo::storage, Typ, type, TypInfo, and WARNING.
Definition at line 902 of file bootstrap.c.
References ALLOCSET_DEFAULT_SIZES, AllocSetContextCreate, Assert, copyObject, IndexInfo::ii_ExclusionOps, IndexInfo::ii_ExclusionProcs, IndexInfo::ii_ExclusionStrats, IndexInfo::ii_Expressions, IndexInfo::ii_ExpressionsState, IndexInfo::ii_Predicate, IndexInfo::ii_PredicateState, _IndexList::il_heap, _IndexList::il_ind, _IndexList::il_info, _IndexList::il_next, ILHead, MemoryContextSwitchTo(), NIL, nogc, and palloc().
Referenced by index_create().
void InsertOneNull | ( | int | i | ) |
Definition at line 665 of file bootstrap.c.
References Assert, boot_reldesc, DEBUG4, elog, ERROR, i, MAXATTR, NameStr, Nulls, PointerGetDatum(), RelationData::rd_att, RelationGetRelationName, TupleDescAttr, and values.
void InsertOneTuple | ( | void | ) |
Definition at line 599 of file bootstrap.c.
References attrtypes, boot_reldesc, CreateTupleDesc(), DEBUG4, elog, heap_form_tuple(), heap_freetuple(), i, Nulls, numattr, pfree(), simple_heap_insert(), and values.
void InsertOneValue | ( | char * | value, |
int | i | ||
) |
Definition at line 627 of file bootstrap.c.
References Assert, boot_get_type_io_data(), boot_reldesc, DEBUG4, elog, ereport, errmsg_internal(), i, MAXATTR, OidInputFunctionCall(), OidOutputFunctionCall(), RelationData::rd_att, TupleDescAttr, typalign, value, and values.
|
extern |
Definition at line 59 of file bootstrap.c.
Referenced by boot_openrel(), BootstrapModeMain(), DefineAttr(), and InsertOneTuple().
|
extern |
Definition at line 57 of file bootstrap.c.
Referenced by boot_openrel(), cleanup(), closerel(), DefineAttr(), InsertOneNull(), InsertOneTuple(), and InsertOneValue().
|
extern |
Definition at line 60 of file bootstrap.c.
Referenced by boot_openrel(), InsertOneTuple(), and tsvector_update_trigger().