#include "pgtime.h"

Go to the source code of this file.
Typedefs | |
| typedef char * | pg_stack_base_t |
| typedef enum ProcessingMode | ProcessingMode |
Enumerations | |
| enum | ProcessingMode { BootstrapProcessing, InitProcessing, NormalProcessing } |
| enum | AuxProcType { NotAnAuxProcess = -1, CheckerProcess = 0, BootstrapProcess, StartupProcess, BgWriterProcess, CheckpointerProcess, WalWriterProcess, WalReceiverProcess, NUM_AUXPROCTYPES } |
| #define AmBackgroundWriterProcess | ( | ) | (MyAuxProcType == BgWriterProcess) |
Definition at line 384 of file miscadmin.h.
Referenced by ForwardFsyncRequest().
| #define AmBootstrapProcess | ( | ) | (MyAuxProcType == BootstrapProcess) |
Definition at line 382 of file miscadmin.h.
| #define AmCheckpointerProcess | ( | ) | (MyAuxProcType == CheckpointerProcess) |
Definition at line 385 of file miscadmin.h.
Referenced by AbsorbFsyncRequests(), CheckpointWriteDelay(), ForwardFsyncRequest(), and mdinit().
| #define AmStartupProcess | ( | ) | (MyAuxProcType == StartupProcess) |
Definition at line 383 of file miscadmin.h.
Referenced by mdinit().
| #define AmWalReceiverProcess | ( | ) | (MyAuxProcType == WalReceiverProcess) |
Definition at line 387 of file miscadmin.h.
Referenced by get_sync_bit().
| #define AmWalWriterProcess | ( | ) | (MyAuxProcType == WalWriterProcess) |
Definition at line 386 of file miscadmin.h.
| #define CHECK_FOR_INTERRUPTS | ( | ) |
Definition at line 90 of file miscadmin.h.
Referenced by _bt_buildadd(), _bt_steppage(), _bt_walk_left(), _hash_metapinit(), _hash_readnext(), _hash_readprev(), add_path(), analyze_rel(), ATRewriteTable(), backend_read_statsfile(), btree_xlog_delete_get_latestRemovedXid(), calculate_database_size(), calculate_relation_size(), calculate_tablespace_size(), ClientAuthentication(), cluster_rel(), copy_file(), copy_heap_data(), copy_relation_data(), copydir(), CopyFrom(), CopyTo(), count_nondeletable_pages(), CountOtherDBBackends(), db_dir_size(), do_autovacuum(), do_pg_stop_backup(), errfinish(), exec_execute_message(), exec_parse_message(), exec_replication_command(), exec_simple_query(), exec_stmt(), exec_stmts(), ExecHashJoin(), ExecMakeTableFunctionResult(), ExecProcNode(), ExecScan(), fsm_vacuum_page(), GetNewOidWithIndex(), GetNewRelFileNode(), getNextNearest(), ginbuild(), ginBuildCallback(), gingetbitmap(), ginInsertCleanup(), gistgetbitmap(), gistgettuple(), gistProcessItup(), HandleCatchupInterrupt(), HandleFunctionRequest(), HandleNotifyInterrupt(), heap_lock_updated_tuple_rec(), heapgetpage(), IndexBuildHeapScan(), IndexCheckExclusion(), lazy_truncate_heap(), make_bounded_heap(), md5_crypt_verify(), MultiExecBitmapIndexScan(), MultiExecProcNode(), numeric_fac(), pg_sleep(), PGSemaphoreLock(), pgstat_collect_oids(), pgstat_get_backend_current_activity(), pgstat_heap(), pgstat_index(), pgstat_read_current_status(), pgstat_vacuum_stat(), pgstatindex(), plperl_spi_prepare(), PortalRunMulti(), postgresAcquireSampleRowsFunc(), predicate_implied_by_simple_clause(), predicate_refuted_by_simple_clause(), prepare_for_client_read(), ProcessWalRcvInterrupts(), puttuple_common(), refresh_matview_datafill(), replace_text(), replace_text_regexp(), RequestCheckpoint(), sendDir(), spgdoinsert(), spgWalk(), storeQueryResult(), text_to_array_internal(), tuplesort_heap_insert(), tuplesort_heap_siftup(), vacuum_delay_point(), vacuum_rel(), validate_index_heapscan(), and WalSndLoop().
| #define DATEORDER_DMY 1 |
Definition at line 199 of file miscadmin.h.
Referenced by check_datestyle(), DecodeNumber(), EncodeDateOnly(), EncodeDateTime(), locale_date_order(), and setup_config().
| #define DATEORDER_MDY 2 |
Definition at line 200 of file miscadmin.h.
Referenced by check_datestyle(), locale_date_order(), and setup_config().
| #define DATEORDER_YMD 0 |
Definition at line 198 of file miscadmin.h.
Referenced by check_datestyle(), DecodeNumber(), locale_date_order(), and setup_config().
| #define END_CRIT_SECTION | ( | ) |
Definition at line 117 of file miscadmin.h.
Referenced by _bt_delitems_delete(), _bt_delitems_vacuum(), _bt_getroot(), _bt_insertonpg(), _bt_log_reuse_page(), _bt_newroot(), _bt_pagedel(), _bt_split(), _hash_expandtable(), AbsorbFsyncRequests(), addLeafTuple(), AlterSequence(), CreateCheckPoint(), CreateEndOfRecoveryRecord(), CreateMultiXactId(), createPostingTree(), do_setval(), doPickSplit(), EndPrepare(), fill_seq_with_data(), ginbuild(), ginbuildempty(), ginbulkdelete(), ginDeletePage(), ginHeapTupleFastInsert(), ginInsertValue(), ginUpdateStats(), ginVacuumPostingTreeLeaves(), gistbuild(), gistbuildempty(), gistbulkdelete(), gistplacetopage(), heap_delete(), heap_inplace_update(), heap_insert(), heap_lock_tuple(), heap_lock_updated_tuple_rec(), heap_multi_insert(), heap_page_prune(), heap_update(), lazy_vacuum_page(), log_newpage(), moveLeafs(), nextval_internal(), PostPrepare_Locks(), RecordTransactionAbort(), RecordTransactionAbortPrepared(), RecordTransactionCommit(), RecordTransactionCommitPrepared(), shiftList(), SlruPhysicalWritePage(), spgAddNodeAction(), spgbuild(), spgSplitNodeAction(), UpdateFullPageWrites(), vacuumLeafPage(), vacuumLeafRoot(), vacuumRedirectAndPlaceholder(), visibilitymap_set(), write_relmap_file(), writeListPage(), XLogBackgroundFlush(), XLogFlush(), and XLogInsert().
| #define GetProcessingMode | ( | ) | Mode |
Definition at line 349 of file miscadmin.h.
| #define HOLD_INTERRUPTS | ( | ) | (InterruptHoldoffCount++) |
Definition at line 107 of file miscadmin.h.
Referenced by AbortSubTransaction(), AbortTransaction(), AutoVacLauncherMain(), AutoVacWorkerMain(), BackgroundWriterMain(), CheckpointerMain(), CommitTransaction(), do_autovacuum(), do_start_bgworker(), LWLockAcquire(), LWLockAcquireOrWait(), LWLockConditionalAcquire(), LWLockReleaseAll(), PostgresMain(), PrepareTransaction(), and WalWriterMain().
| #define INTSTYLE_ISO_8601 3 |
Definition at line 215 of file miscadmin.h.
Referenced by EncodeInterval().
| #define INTSTYLE_POSTGRES 0 |
Definition at line 212 of file miscadmin.h.
Referenced by EncodeInterval(), and set_transmission_modes().
| #define INTSTYLE_POSTGRES_VERBOSE 1 |
Definition at line 213 of file miscadmin.h.
Referenced by DecodeInterval(), EncodeInterval(), and PGTYPESinterval_to_asc().
| #define INTSTYLE_SQL_STANDARD 2 |
Definition at line 214 of file miscadmin.h.
Referenced by DecodeInterval(), and EncodeInterval().
| #define IsBootstrapProcessingMode | ( | ) | (Mode == BootstrapProcessing) |
Definition at line 345 of file miscadmin.h.
Referenced by AtEOXact_cleanup(), CacheInvalidateHeapTuple(), create_toast_table(), DefineIndex(), ExecUpdate(), formrdesc(), get_type_io_data(), get_user_default_acl(), GetNewOid(), GetNewTransactionId(), heap_create_with_catalog(), heap_inplace_update(), index_constraint_create(), index_create(), index_update_stats(), IndexBuildHeapScan(), initialize_acl(), InitializeSearchPath(), InitializeSessionUserId(), InitPostgres(), InitXLOGAccess(), mdcreate(), mdopen(), RangeVarGetAndCheckCreationNamespace(), recordMultipleDependencies(), recordSharedDependencyOn(), regclassin(), regclassout(), regoperin(), regoperout(), regprocin(), regprocout(), regtypein(), regtypeout(), RelationCacheInitializePhase2(), RelationCacheInitializePhase3(), RelationDecrementReferenceCount(), RelationIncrementReferenceCount(), RelationMapFinishBootstrap(), RelationMapInitializePhase2(), RelationMapInitializePhase3(), RelationMapUpdateMap(), SearchCatCache(), TypeCreate(), TypeShellMake(), XLogInsert(), and XLOGShmemInit().
| #define IsInitProcessingMode | ( | ) | (Mode == InitProcessing) |
Definition at line 346 of file miscadmin.h.
Referenced by BackgroundWorkerInitializeConnection().
| #define IsNormalProcessingMode | ( | ) | (Mode == NormalProcessing) |
Definition at line 347 of file miscadmin.h.
Referenced by heap_create_with_catalog(), index_constraint_create(), and index_create().
| #define LOCK_FILE_LINE_DATA_DIR 2 |
Definition at line 426 of file miscadmin.h.
| #define LOCK_FILE_LINE_LISTEN_ADDR 6 |
Definition at line 430 of file miscadmin.h.
Referenced by PostmasterMain(), and test_postmaster_connection().
| #define LOCK_FILE_LINE_PID 1 |
Definition at line 425 of file miscadmin.h.
Referenced by test_postmaster_connection().
| #define LOCK_FILE_LINE_PORT 4 |
Definition at line 428 of file miscadmin.h.
Referenced by get_sock_dir(), and test_postmaster_connection().
| #define LOCK_FILE_LINE_SHMEM_KEY 7 |
Definition at line 431 of file miscadmin.h.
Referenced by CreateLockFile(), and InternalIpcMemoryCreate().
| #define LOCK_FILE_LINE_SOCKET_DIR 5 |
Definition at line 429 of file miscadmin.h.
Referenced by get_sock_dir(), PostmasterMain(), and test_postmaster_connection().
| #define LOCK_FILE_LINE_START_TIME 3 |
Definition at line 427 of file miscadmin.h.
Referenced by test_postmaster_connection().
Definition at line 228 of file miscadmin.h.
Referenced by abstime2tm(), and EncodeDateTime().
| #define PG_BACKEND_VERSIONSTR "postgres (PostgreSQL) " PG_VERSION "\n" |
Definition at line 29 of file miscadmin.h.
Referenced by adjust_data_dir(), do_start(), getInstallationPaths(), and setup_bin_paths().
| #define RESUME_INTERRUPTS | ( | ) |
Definition at line 109 of file miscadmin.h.
Referenced by AbortSubTransaction(), AbortTransaction(), AutoVacLauncherMain(), BackgroundWriterMain(), CheckpointerMain(), CommitTransaction(), do_autovacuum(), LWLockAcquireOrWait(), LWLockConditionalAcquire(), LWLockRelease(), PostgresMain(), PrepareTransaction(), and WalWriterMain().
| #define SECURITY_LOCAL_USERID_CHANGE 0x0001 |
Definition at line 279 of file miscadmin.h.
Referenced by CreateSchemaCommand(), fmgr_security_definer(), InLocalUserIdChange(), ri_PerformCheck(), ri_PlanCheck(), and SetUserIdAndContext().
| #define SECURITY_RESTRICTED_OPERATION 0x0002 |
Definition at line 280 of file miscadmin.h.
Referenced by do_analyze_rel(), index_build(), InSecurityRestrictedOperation(), vacuum_rel(), and validate_index().
| #define SetProcessingMode | ( | mode | ) |
Definition at line 351 of file miscadmin.h.
Referenced by AutoVacLauncherMain(), AutoVacWorkerMain(), AuxiliaryProcessMain(), BackgroundWorkerInitializeConnection(), BootstrapModeMain(), do_start_bgworker(), and PostgresMain().
| #define START_CRIT_SECTION | ( | ) | (CritSectionCount++) |
Definition at line 115 of file miscadmin.h.
Referenced by _bt_delitems_delete(), _bt_delitems_vacuum(), _bt_getroot(), _bt_insertonpg(), _bt_log_reuse_page(), _bt_newroot(), _bt_pagedel(), _bt_split(), _hash_expandtable(), AbsorbFsyncRequests(), addLeafTuple(), AlterSequence(), CreateCheckPoint(), CreateEndOfRecoveryRecord(), createPostingTree(), do_setval(), doPickSplit(), EndPrepare(), fill_seq_with_data(), GetNewMultiXactId(), ginbuild(), ginbuildempty(), ginbulkdelete(), ginDeletePage(), ginHeapTupleFastInsert(), ginInsertValue(), ginUpdateStats(), ginVacuumPostingTreeLeaves(), gistbuild(), gistbuildempty(), gistbulkdelete(), gistplacetopage(), heap_delete(), heap_inplace_update(), heap_insert(), heap_lock_tuple(), heap_lock_updated_tuple_rec(), heap_multi_insert(), heap_page_prune(), heap_update(), lazy_vacuum_page(), log_newpage(), moveLeafs(), nextval_internal(), PostPrepare_Locks(), RecordTransactionAbort(), RecordTransactionAbortPrepared(), RecordTransactionCommit(), RecordTransactionCommitPrepared(), shiftList(), SlruPhysicalWritePage(), spgAddNodeAction(), spgbuild(), spgSplitNodeAction(), UpdateFullPageWrites(), vacuumLeafPage(), vacuumLeafRoot(), vacuumRedirectAndPlaceholder(), visibilitymap_set(), write_relmap_file(), writeListPage(), XLogBackgroundFlush(), XLogFlush(), and XLogInsert().
| #define USE_GERMAN_DATES 3 |
Definition at line 194 of file miscadmin.h.
Referenced by check_datestyle(), EncodeDateOnly(), and EncodeDateTime().
| #define USE_ISO_DATES 1 |
Definition at line 192 of file miscadmin.h.
Referenced by check_datestyle(), EncodeDateOnly(), EncodeDateTime(), set_transmission_modes(), and timestamptz_to_str().
| #define USE_POSTGRES_DATES 0 |
Definition at line 191 of file miscadmin.h.
Referenced by check_datestyle(), EncodeDateOnly(), and EncodeDateTime().
| #define USE_SQL_DATES 2 |
Definition at line 193 of file miscadmin.h.
Referenced by check_datestyle(), EncodeDateOnly(), and EncodeDateTime().
| #define USE_XSD_DATES 4 |
Definition at line 195 of file miscadmin.h.
Referenced by EncodeDateOnly(), EncodeDateTime(), EncodeTimezone(), and map_sql_value_to_xml_value().
| typedef char* pg_stack_base_t |
Definition at line 258 of file miscadmin.h.
| enum AuxProcType |
| NotAnAuxProcess | |
| CheckerProcess | |
| BootstrapProcess | |
| StartupProcess | |
| BgWriterProcess | |
| CheckpointerProcess | |
| WalWriterProcess | |
| WalReceiverProcess | |
| NUM_AUXPROCTYPES |
Definition at line 366 of file miscadmin.h.
| enum ProcessingMode |
Definition at line 336 of file miscadmin.h.
| void AddToDataDirLockFile | ( | int | target_line, |
| const char * | str | ||
| ) |
Definition at line 107 of file ipc_test.c.
References close, DIRECTORY_LOCK_FILE, elog, ereport, errcode_for_file_access(), errmsg(), fd(), LOG, NULL, PG_BINARY, pg_fsync(), read, snprintf(), and write.
Referenced by InternalIpcMemoryCreate(), and PostmasterMain().
| bool BackupInProgress | ( | void | ) |
Definition at line 9298 of file xlog.c.
References BACKUP_LABEL_FILE.
Referenced by pg_is_in_backup(), and PostmasterStateMachine().
| void BaseInit | ( | void | ) |
Definition at line 460 of file postinit.c.
References DebugFileOpen(), InitBufferPoolAccess(), InitCommunication(), InitFileAccess(), and smgrinit().
Referenced by AutoVacLauncherMain(), AutoVacWorkerMain(), AuxiliaryProcessMain(), do_start_bgworker(), and PostgresMain().
| void CancelBackup | ( | void | ) |
Definition at line 9313 of file xlog.c.
References BACKUP_LABEL_FILE, BACKUP_LABEL_OLD, ereport, errcode_for_file_access(), errdetail(), errmsg(), LOG, unlink(), and WARNING.
Referenced by PostmasterStateMachine().
| void ChangeToDataDir | ( | void | ) |
Definition at line 109 of file miscinit.c.
References AssertState, DataDir, ereport, errcode_for_file_access(), errmsg(), and FATAL.
Referenced by AuxiliaryProcessMain(), PostgresMain(), and PostmasterMain().
| void check_stack_depth | ( | void | ) |
Definition at line 3051 of file postgres.c.
References ereport, errcode(), errhint(), errmsg(), ERROR, max_stack_depth, max_stack_depth_bytes, NULL, and stack_base_ptr.
Referenced by addone(), clean_fakeval_intree(), clean_NOT_intree(), cntsize(), contains_required_value(), copyObject(), Cover(), dofindsubquery(), EventTriggerInvoke(), ExecInitExpr(), ExecMakeFunctionResult(), ExecMakeFunctionResultNoSets(), execute(), expression_tree_mutator(), expression_tree_walker(), fillQT(), findoprnd_recurse(), freetree(), infix(), inline_set_returning_function(), JumbleExpr(), makepol(), plainnode(), plperl_hash_from_tuple(), plperl_sv_to_datum(), QT2QTN(), QTNBinary(), QTNClearFlags(), QTNCopy(), QTNFree(), QTNodeCompare(), QTNSort(), QTNTernary(), raw_expression_tree_walker(), split_array(), transformExprRecurse(), transformSetOperationTree(), TS_execute(), tsquery_opr_selec(), and tsquery_requires_match().
| void CreateDataDirLockFile | ( | bool | amPostmaster | ) |
Definition at line 972 of file miscinit.c.
References CreateLockFile(), DataDir, and DIRECTORY_LOCK_FILE.
Referenced by AuxiliaryProcessMain(), PostgresMain(), and PostmasterMain().
| void CreateSocketLockFile | ( | const char * | socketfile, |
| bool | amPostmaster, | ||
| const char * | socketDir | ||
| ) |
Definition at line 981 of file miscinit.c.
References CreateLockFile(), MAXPGPATH, and snprintf().
| Oid GetCurrentRoleId | ( | void | ) |
Definition at line 555 of file miscinit.c.
References InvalidOid, OuterUserId, and SetRoleIsActive.
Referenced by show_role().
| Oid GetOuterUserId | ( | void | ) |
Definition at line 252 of file miscinit.c.
References AssertState, OidIsValid, and OuterUserId.
Referenced by DropRole(), and RenameRole().
| Oid GetSessionUserId | ( | void | ) |
Definition at line 275 of file miscinit.c.
References AssertState, OidIsValid, and SessionUserId.
Referenced by check_role(), DropRole(), InitPostgres(), pgstat_bestart(), RenameRole(), and session_user().
| Oid GetUserId | ( | void | ) |
Definition at line 241 of file miscinit.c.
References AssertState, CurrentUserId, and OidIsValid.
Referenced by AddRoleMems(), AggregateCreate(), AlterDatabase(), AlterDatabaseOwner(), AlterDatabaseSet(), AlterEventTrigger(), AlterEventTriggerOwner_internal(), AlterExtensionNamespace(), AlterForeignServer(), AlterForeignServerOwner_internal(), AlterFunction(), AlterObjectNamespace_internal(), AlterObjectOwner_internal(), AlterObjectRename_internal(), AlterOpFamilyAdd(), AlterRole(), AlterRoleSet(), AlterSchemaOwner_internal(), AlterSequence(), AlterTableSpaceOptions(), AlterTSConfiguration(), AlterTSDictionary(), AlterTypeNamespace_oid(), AlterTypeOwner(), analyze_rel(), ATExecAddColumn(), ATExecChangeOwner(), ATPrepAlterColumnType(), ATPrepSetStatistics(), ATPrepSetTableSpace(), ATSimplePermissions(), BuildDescForRelation(), calculate_database_size(), calculate_tablespace_size(), check_temp_tablespaces(), checkDomainOwner(), checkEnumOwner(), checkFkeyPermissions(), CheckMyDatabase(), CheckRelationOwnership(), cluster_rel(), CommentObject(), compile_plperl_function(), compile_pltcl_function(), compute_return_type(), create_empty_extension(), CreateCast(), CreateConversionCommand(), createdb(), CreateEventTrigger(), CreateExtension(), CreateForeignDataWrapper(), CreateForeignServer(), CreateForeignTable(), CreateFunction(), CreateOpFamily(), CreateProceduralLanguage(), CreateRole(), CreateTableSpace(), CreateTrigger(), current_user(), currtid_byrelname(), currtid_byreloid(), currval_oid(), DefineAggregate(), DefineCollation(), DefineDomain(), DefineEnum(), DefineIndex(), DefineOpClass(), DefineOperator(), DefineOpFamily(), DefineQueryRewrite(), DefineRange(), DefineRelation(), DefineTSConfiguration(), DefineTSDictionary(), DefineType(), DelRoleMems(), do_pg_start_backup(), do_pg_stop_backup(), do_setval(), dropdb(), DropOwnedObjects(), DropRole(), DropTableSpace(), EnableDisableRule(), examine_parameter_list(), ExecAlterDefaultPrivilegesStmt(), ExecAlterExtensionContentsStmt(), ExecAlterExtensionStmt(), ExecCheckRTEPerms(), ExecEvalArrayCoerceExpr(), ExecGrant_Attribute(), ExecGrant_Database(), ExecGrant_Fdw(), ExecGrant_ForeignServer(), ExecGrant_Function(), ExecGrant_Language(), ExecGrant_Largeobject(), ExecGrant_Namespace(), ExecGrant_Relation(), ExecGrant_Tablespace(), ExecGrant_Type(), ExecInitAgg(), ExecInitWindowAgg(), ExecSecLabelStmt(), ExecuteDoStmt(), ExecuteTruncate(), findRangeCanonicalFunction(), findRangeSubtypeDiffFunction(), FinishPreparedTransaction(), get_connect_string(), get_other_operator(), get_rel_from_relname(), get_tables_to_cluster(), GetUserOidFromMapping(), GrantRole(), HandleFunctionRequest(), has_any_column_privilege_id(), has_any_column_privilege_name(), has_column_privilege_id_attnum(), has_column_privilege_id_name(), has_column_privilege_name_attnum(), has_column_privilege_name_name(), has_database_privilege_id(), has_database_privilege_name(), has_foreign_data_wrapper_privilege_id(), has_foreign_data_wrapper_privilege_name(), has_function_privilege_id(), has_function_privilege_name(), has_language_privilege_id(), has_language_privilege_name(), has_schema_privilege_id(), has_schema_privilege_name(), has_sequence_privilege_id(), has_sequence_privilege_name(), has_server_privilege_id(), has_server_privilege_name(), has_table_privilege_id(), has_table_privilege_name(), has_tablespace_privilege_id(), has_tablespace_privilege_name(), has_type_privilege_id(), has_type_privilege_name(), have_createdb_privilege(), have_createrole_privilege(), init_fcache(), InitializeSearchPath(), InitPostgres(), InitTempTableNamespace(), inline_function(), inline_set_returning_function(), insert_username(), inv_create(), LargeObjectCreate(), lastval(), lo_read(), lo_truncate_internal(), lo_unlink(), lo_write(), LockTableAclCheck(), lookup_agg_function(), LookupCreationNamespace(), LookupExplicitNamespace(), MergeAttributes(), movedb(), nextval_internal(), OperatorCreate(), OperatorShellMake(), pg_has_role_id(), pg_has_role_name(), pg_sequence_parameters(), pg_signal_backend(), pg_stat_get_activity(), pg_stat_get_backend_activity(), pg_stat_get_backend_activity_start(), pg_stat_get_backend_client_addr(), pg_stat_get_backend_client_port(), pg_stat_get_backend_start(), pg_stat_get_backend_waiting(), pg_stat_get_backend_xact_start(), pg_stat_statements(), pgrowlocks(), pgss_store(), pgstat_get_backend_current_activity(), pltcl_fetch_interp(), postgresBeginForeignModify(), postgresBeginForeignScan(), postgresGetForeignRelSize(), PrepareTempTablespaces(), PrepareTransaction(), RangeVarCallbackForAlterRelation(), RangeVarCallbackForDropRelation(), RangeVarCallbackForReindexIndex(), RangeVarCallbackForRenameRule(), RangeVarCallbackForRenameTrigger(), RangeVarCallbackOwnsTable(), RangeVarGetAndCheckCreationNamespace(), ReassignOwnedObjects(), recomputeNamespacePath(), ReindexDatabase(), RemoveObjects(), renameatt_check(), RenameDatabase(), RenameSchema(), RenameTableSpace(), RenameType(), select_perl_context(), superuser(), timetravel(), transformTableLikeClause(), truncate_check_rel(), user_mapping_ddl_aclcheck(), and vacuum_rel().
Definition at line 369 of file miscinit.c.
References CurrentUserId, and InLocalUserIdChange().
| void GetUserIdAndSecContext | ( | Oid * | userid, |
| int * | sec_context | ||
| ) |
Definition at line 329 of file miscinit.c.
References CurrentUserId, and SecurityRestrictionContext.
Referenced by CreateSchemaCommand(), do_analyze_rel(), fmgr_security_definer(), index_build(), PushTransaction(), ri_PerformCheck(), ri_PlanCheck(), StartTransaction(), vacuum_rel(), and validate_index().
| char* GetUserNameFromId | ( | Oid | roleid | ) |
Definition at line 610 of file miscinit.c.
References AUTHOID, ereport, errcode(), errmsg(), ERROR, GETSTRUCT, HeapTupleIsValid, NameStr, ObjectIdGetDatum, pstrdup(), ReleaseSysCache(), and SearchSysCache1.
Referenced by check_is_member_of_role(), current_user(), getObjectDescription(), getObjectIdentity(), insert_username(), session_user(), and timetravel().
Definition at line 396 of file miscinit.c.
References AUTHOID, GETSTRUCT, HeapTupleIsValid, ObjectIdGetDatum, ReleaseSysCache(), and SearchSysCache1.
Referenced by do_pg_start_backup(), do_pg_stop_backup(), and InitPostgres().
| void InitializeMaxBackends | ( | void | ) |
Definition at line 438 of file postinit.c.
References Assert, autovacuum_max_workers, elog, ERROR, GetNumShmemAttachedBgworkers(), MAX_BACKENDS, MaxBackends, and MaxConnections.
Referenced by AuxiliaryProcessMain(), PostgresMain(), and PostmasterMain().
| void InitializeSessionUserId | ( | const char * | rolename | ) |
Definition at line 414 of file miscinit.c.
References AssertState, AuthenticatedUserId, AuthenticatedUserIsSuperuser, AUTHNAME, CountUserBackends(), ereport, errcode(), errmsg(), FATAL, GETSTRUCT, HeapTupleGetOid, HeapTupleIsValid, IsBootstrapProcessingMode, IsUnderPostmaster, MyProc, OidIsValid, PGC_BACKEND, PGC_INTERNAL, PGC_S_OVERRIDE, PointerGetDatum, ReleaseSysCache(), PGPROC::roleId, SearchSysCache1, SetConfigOption(), and SetSessionUserId().
Referenced by InitPostgres().
| void InitializeSessionUserIdStandalone | ( | void | ) |
Definition at line 498 of file miscinit.c.
References AssertState, AuthenticatedUserId, AuthenticatedUserIsSuperuser, BOOTSTRAP_SUPERUSERID, IsAutoVacuumWorkerProcess(), IsBackgroundWorker, IsUnderPostmaster, OidIsValid, and SetSessionUserId().
Referenced by InitPostgres().
| void InitPostgres | ( | const char * | in_dbname, |
| Oid | dboid, | ||
| const char * | username, | ||
| char * | out_dbname | ||
| ) |
Definition at line 498 of file postinit.c.
References am_walsender, Assert, CAC_WAITBACKUP, Port::canAcceptConnections, CheckDeadLock(), CheckMyDatabase(), CommitTransactionCommand(), PGPROC::databaseId, DatabaseRelationId, DEADLOCK_TIMEOUT, DEBUG3, DEFAULTTABLESPACE_OID, elog, EnablePortalManager(), ereport, errcode(), errcode_for_file_access(), errdetail(), errhint(), errmsg(), FATAL, GetDatabasePath(), GetDatabaseTuple(), GetDatabaseTupleByOid(), GetSessionUserId(), GETSTRUCT, GetTransactionSnapshot(), GetUserId(), has_rolreplication(), HaveNFreeProcs(), HeapTupleGetOid, HeapTupleIsValid, InitBufferPoolBackend(), InitCatalogCache(), initialize_acl(), InitializeClientEncoding(), InitializeSearchPath(), InitializeSessionUserId(), InitializeSessionUserIdStandalone(), InitPlanCache(), InitProcessPhase2(), InvalidBackendId, IsAutoVacuumLauncherProcess(), IsAutoVacuumWorkerProcess(), IsBackgroundWorker, IsBinaryUpgrade, IsBootstrapProcessingMode, IsUnderPostmaster, LOCK_TIMEOUT, LockSharedObject(), LockTimeoutHandler(), MaxBackends, MyBackendId, MyDatabaseId, MyDatabaseTableSpace, MyProc, MyProcPort, NAMEDATALEN, NameStr, NULL, on_shmem_exit(), PerformAuthentication(), pg_usleep(), pgstat_bestart(), pgstat_initialize(), PostAuthDelay, process_settings(), process_startup_options(), ProcSignalInit(), RecoveryInProgress(), RegisterTimeout(), RelationCacheInitialize(), RelationCacheInitializePhase2(), RelationCacheInitializePhase3(), ReservedBackends, RowExclusiveLock, SetCurrentStatementStartTimestamp(), SetDatabasePath(), SharedInvalBackendInit(), ShutdownPostgres(), ShutdownXLOG(), StartTransactionCommand(), StartupXLOG(), STATEMENT_TIMEOUT, StatementTimeoutHandler(), strlcpy(), superuser(), TemplateDbOid, ThereIsAtLeastOneRole(), ValidatePgVersion(), WARNING, XACT_READ_COMMITTED, and XactIsoLevel.
Referenced by AutoVacLauncherMain(), AutoVacWorkerMain(), BackgroundWorkerInitializeConnection(), BootstrapModeMain(), and PostgresMain().
| bool InLocalUserIdChange | ( | void | ) |
Definition at line 347 of file miscinit.c.
References SECURITY_LOCAL_USERID_CHANGE, and SecurityRestrictionContext.
Referenced by GetUserIdAndContext(), and set_config_option().
| bool InSecurityRestrictedOperation | ( | void | ) |
Definition at line 356 of file miscinit.c.
References SECURITY_RESTRICTED_OPERATION, and SecurityRestrictionContext.
Referenced by CheckRestrictedOperation(), DefineRelation(), set_config_option(), and SetUserIdAndContext().
| char* make_absolute_path | ( | const char * | path | ) |
Definition at line 131 of file miscinit.c.
References buf, canonicalize_path(), elog, ereport, errcode(), errmsg(), FATAL, free, is_absolute_path, malloc, MAXPGPATH, and NULL.
Referenced by regression_main(), SelectConfigFiles(), and SetDataDir().
| void pg_bindtextdomain | ( | const char * | domain | ) |
Definition at line 1329 of file miscinit.c.
References get_locale_path(), MAXPGPATH, my_exec_path, and pg_bind_textdomain_codeset().
Referenced by _PG_init().
| void pg_split_opts | ( | char ** | argv, |
| int * | argcp, | ||
| char * | optstr | ||
| ) |
Definition at line 409 of file postinit.c.
Referenced by BackendRun(), and process_startup_options().
| void PreventCommandDuringRecovery | ( | const char * | cmdname | ) |
Definition at line 282 of file utility.c.
References ereport, errcode(), errmsg(), ERROR, and RecoveryInProgress().
Referenced by LockTableCommand(), pg_notify(), standard_ProcessUtility(), and txid_current().
| void PreventCommandIfReadOnly | ( | const char * | cmdname | ) |
Definition at line 263 of file utility.c.
References ereport, errcode(), errmsg(), ERROR, and XactReadOnly.
Referenced by check_xact_readonly(), do_setval(), DoCopy(), ExecCheckXactReadOnly(), and nextval_internal().
| void process_local_preload_libraries | ( | void | ) |
Definition at line 1321 of file miscinit.c.
References load_libraries(), and local_preload_libraries_string.
Referenced by PostgresMain().
| void process_shared_preload_libraries | ( | void | ) |
Definition at line 1308 of file miscinit.c.
References load_libraries(), process_shared_preload_libraries_in_progress, and shared_preload_libraries_string.
Referenced by PostmasterMain().
| void ProcessInterrupts | ( | void | ) |
Definition at line 112 of file ipc_test.c.
References Assert, ClientAuthInProgress, ClientConnectionLost, CritSectionCount, DestNone, DestRemote, DisableCatchupInterrupt(), DisableNotifyInterrupt(), DoingCommandRead, ereport, errcode(), errdetail_recovery_conflict(), errhint(), errmsg(), ERROR, FATAL, get_timeout_indicator(), ImmediateInterruptOK, InterruptHoldoffCount, InterruptPending, IsAutoVacuumWorkerProcess(), LOCK_TIMEOUT, pgstat_report_recovery_conflict(), ProcDiePending, PROCSIG_RECOVERY_CONFLICT_DATABASE, QueryCancelPending, RecoveryConflictPending, RecoveryConflictReason, RecoveryConflictRetryable, STATEMENT_TIMEOUT, and whereToSendOutput.
Referenced by die(), RecoveryConflictInterrupt(), and StatementCancelHandler().
| void restore_stack_base | ( | pg_stack_base_t | base | ) |
Definition at line 3032 of file postgres.c.
References stack_base_ptr.
| pg_stack_base_t set_stack_base | ( | void | ) |
Definition at line 3001 of file postgres.c.
References stack_base_ptr.
Referenced by PostmasterMain().
Definition at line 576 of file miscinit.c.
References OidIsValid, PGC_INTERNAL, PGC_S_OVERRIDE, SessionUserId, SessionUserIsSuperuser, SetConfigOption(), SetOuterUserId(), and SetRoleIsActive.
Referenced by assign_role().
| void SetDatabasePath | ( | const char * | path | ) |
Definition at line 76 of file miscinit.c.
References Assert, DatabasePath, MemoryContextStrdup(), and TopMemoryContext.
Referenced by InitPostgres().
| void SetDataDir | ( | const char * | dir | ) |
Definition at line 88 of file miscinit.c.
References AssertArg, DataDir, free, and make_absolute_path().
Referenced by SelectConfigFiles().
Definition at line 530 of file miscinit.c.
References AssertState, AuthenticatedUserId, AuthenticatedUserIsSuperuser, ereport, errcode(), errmsg(), ERROR, OidIsValid, PGC_INTERNAL, PGC_S_OVERRIDE, SetConfigOption(), and SetSessionUserId().
Referenced by assign_session_authorization().
Definition at line 376 of file miscinit.c.
References CurrentUserId, ereport, errcode(), errmsg(), ERROR, InSecurityRestrictedOperation(), SECURITY_LOCAL_USERID_CHANGE, and SecurityRestrictionContext.
| void SetUserIdAndSecContext | ( | Oid | userid, |
| int | sec_context | ||
| ) |
Definition at line 336 of file miscinit.c.
References CurrentUserId, and SecurityRestrictionContext.
Referenced by AbortSubTransaction(), AbortTransaction(), CreateSchemaCommand(), do_analyze_rel(), fmgr_security_definer(), index_build(), ri_PerformCheck(), ri_PlanCheck(), vacuum_rel(), and validate_index().
| bool superuser | ( | void | ) |
Definition at line 47 of file superuser.c.
References GetUserId(), and superuser_arg().
Referenced by AddRoleMems(), AlterForeignDataWrapper(), AlterForeignDataWrapperOwner_internal(), AlterForeignServerOwner_internal(), AlterFunction(), AlterObjectNamespace_internal(), AlterObjectOwner_internal(), AlterObjectRename_internal(), AlterOpFamily(), AlterRole(), AlterRoleSet(), AlterTypeOwner(), ATExecChangeOwner(), bt_metap(), bt_page_items(), bt_page_stats(), check_conn_params(), check_encoding_locale_matches(), connect_pg_server(), CreateCast(), CreateEventTrigger(), CreateForeignDataWrapper(), CreateFunction(), CreateProceduralLanguage(), CreateRole(), CreateTableSpace(), dblink_connstr_check(), dblink_security_check(), DefineAggregate(), DefineOpClass(), DefineOpFamily(), DefineTSParser(), DefineTSTemplate(), DefineType(), DelRoleMems(), do_pg_start_backup(), do_pg_stop_backup(), DoCopy(), DropRole(), dummy_object_relabel(), EnableDisableTrigger(), ExecSetVariableStmt(), execute_extension_script(), ExecuteDoStmt(), file_fdw_validator(), fmgr_security_definer(), fsm_page_contents(), get_raw_page_internal(), GetConfigOption(), GetConfigOptionByName(), GetConfigOptionByNum(), GetConfigOptionResetString(), GUCArrayReset(), have_createdb_privilege(), heap_page_items(), InitPostgres(), lo_export(), lo_import_internal(), main(), page_header(), pg_create_restore_point(), pg_is_xlog_replay_paused(), pg_logdir_ls(), pg_ls_dir(), pg_read_binary_file(), pg_read_binary_file_all(), pg_read_file(), pg_read_file_all(), pg_reload_conf(), pg_relpages(), pg_rotate_logfile(), pg_signal_backend(), pg_stat_file(), pg_stat_get_activity(), pg_stat_get_backend_activity(), pg_stat_get_backend_activity_start(), pg_stat_get_backend_client_addr(), pg_stat_get_backend_client_port(), pg_stat_get_backend_start(), pg_stat_get_backend_waiting(), pg_stat_get_backend_xact_start(), pg_stat_get_wal_senders(), pg_stat_statements(), pg_switch_xlog(), pg_xlog_replay_pause(), pg_xlog_replay_resume(), pgstat_get_backend_current_activity(), pgstat_reset_counters(), pgstat_reset_shared_counters(), pgstat_reset_single_counter(), pgstatginindex(), pgstatindex(), pgstattuple(), pgstattuplebyid(), ProcedureCreate(), RenameRole(), requireSuperuser(), sepgsql_restorecon(), set_config_by_name(), SetPGVariable(), ShowAllGUCConfig(), standard_ProcessUtility(), and validate_option_array_item().
Definition at line 57 of file superuser.c.
References AUTHOID, BOOTSTRAP_SUPERUSERID, CacheRegisterSyscacheCallback(), GETSTRUCT, HeapTupleIsValid, IsUnderPostmaster, last_roleid, last_roleid_is_super, ObjectIdGetDatum, OidIsValid, ReleaseSysCache(), roleid_callback_registered, RoleidCallback(), and SearchSysCache1.
Referenced by AddRoleMems(), AlterEventTriggerOwner_internal(), AlterForeignDataWrapperOwner_internal(), check_object_ownership(), DelRoleMems(), has_createrole_privilege(), has_privs_of_role(), is_admin_of_role(), is_member_of_role(), LockGXact(), pg_class_aclmask(), pg_class_ownercheck(), pg_collation_ownercheck(), pg_conversion_ownercheck(), pg_database_aclmask(), pg_database_ownercheck(), pg_event_trigger_ownercheck(), pg_extension_ownercheck(), pg_foreign_data_wrapper_aclmask(), pg_foreign_data_wrapper_ownercheck(), pg_foreign_server_aclmask(), pg_foreign_server_ownercheck(), pg_language_aclmask(), pg_language_ownercheck(), pg_largeobject_aclmask_snapshot(), pg_largeobject_ownercheck(), pg_namespace_aclmask(), pg_namespace_ownercheck(), pg_opclass_ownercheck(), pg_oper_ownercheck(), pg_opfamily_ownercheck(), pg_proc_aclmask(), pg_proc_ownercheck(), pg_tablespace_aclmask(), pg_tablespace_ownercheck(), pg_ts_config_ownercheck(), pg_ts_dict_ownercheck(), pg_type_aclmask(), pg_type_ownercheck(), pltcl_init_load_unknown(), select_best_grantor(), and superuser().
| void TouchSocketLockFiles | ( | void | ) |
Definition at line 999 of file miscinit.c.
References close, DIRECTORY_LOCK_FILE, fd(), lfirst, NULL, PG_BINARY, and read.
Referenced by ServerLoop().
| int trace_recovery | ( | int | trace_level | ) |
Definition at line 3119 of file elog.c.
References LOG, and trace_recovery_messages.
Referenced by KnownAssignedXidsRemove(), KnownAssignedXidsRemovePreceding(), LogCurrentRunningXacts(), ProcArrayApplyRecoveryInfo(), ProcessCommittedInvalidationMessages(), RecordKnownAssignedTransactionIds(), RecoveryRestartPoint(), StandbyAcquireAccessExclusiveLock(), StandbyReleaseAllLocks(), StandbyReleaseLocks(), and StandbyReleaseOldLocks().
| void ValidatePgVersion | ( | const char * | path | ) |
Definition at line 1162 of file miscinit.c.
References AllocateFile(), ereport, errcode(), errcode_for_file_access(), errdetail(), errhint(), errmsg(), FATAL, FreeFile(), MAXPGPATH, NULL, and snprintf().
Referenced by AuxiliaryProcessMain(), checkDataDir(), InitPostgres(), and PostgresMain().
| bool allowSystemTableMods |
Definition at line 100 of file globals.c.
Referenced by ATAddForeignKeyConstraint(), ATExecAddIndexConstraint(), ATSimplePermissions(), CheckRelationOwnership(), CreateSchemaCommand(), CreateTableSpace(), CreateTrigger(), DefineIndex(), DefineQueryRewrite(), DefineRelation(), perform_relmap_update(), pg_class_aclmask(), RangeVarCallbackForAlterRelation(), RangeVarCallbackForDropRelation(), RangeVarCallbackForRenameRule(), RangeVarCallbackForRenameTrigger(), RemoveTriggerById(), renameatt_check(), RenameSchema(), RenameTableSpace(), and truncate_check_rel().
| volatile bool ClientConnectionLost |
Definition at line 31 of file globals.c.
Referenced by internal_flush(), and ProcessInterrupts().
| PGDLLIMPORT volatile uint32 CritSectionCount |
Definition at line 46 of file ipc_test.c.
Referenced by die(), errfinish(), errstart(), log_newpage_buffer(), proc_exit_prepare(), ProcessInterrupts(), RecoveryConflictInterrupt(), StatementCancelHandler(), and XLogWrite().
| int CTimeZone |
Definition at line 97 of file globals.c.
Referenced by abstime2tm(), assign_timezone(), check_timezone(), DetermineTimeZoneOffset(), show_timezone(), and timestamp2tm().
| char* DatabasePath |
Definition at line 71 of file globals.c.
Referenced by load_relcache_init_file(), load_relmap_file(), perform_relmap_update(), ProcessCommittedInvalidationMessages(), RelationCacheInitFilePreInvalidate(), RelationMapFinishBootstrap(), SetDatabasePath(), and write_relcache_init_file().
| PGDLLIMPORT char* DataDir |
Definition at line 54 of file ipc_test.c.
Referenced by AuxiliaryProcessMain(), ChangeToDataDir(), checkDataDir(), convert_and_check_filename(), CreateDataDirLockFile(), CreateLockFile(), GetSharedMemName(), main(), PGSharedMemoryCreate(), PGSharedMemoryIsInUse(), PostgresMain(), SelectConfigFiles(), SetDataDir(), and StartupXLOG().
| int DateOrder |
Definition at line 94 of file globals.c.
Referenced by assign_datestyle(), check_datestyle(), DecodeNumber(), EncodeDateOnly(), and EncodeDateTime().
| int DateStyle |
Definition at line 93 of file globals.c.
Referenced by abstimeout(), assign_datestyle(), check_datestyle(), date_out(), PGTYPESdate_to_asc(), PGTYPEStimestamp_to_asc(), set_transmission_modes(), time_out(), timestamp_out(), timestamptz_out(), and timetz_out().
| bool enableFsync |
Definition at line 99 of file globals.c.
Referenced by copydir(), get_sync_bit(), mdsync(), pg_fdatasync(), pg_flush_data(), pg_fsync_no_writethrough(), pg_fsync_writethrough(), and XLogFlush().
| bool ExitOnAnyError |
Definition at line 91 of file globals.c.
Referenced by BackgroundWriterMain(), CheckpointerMain(), and errstart().
| bool HasCTZSet |
Definition at line 96 of file globals.c.
Referenced by abstime2tm(), assign_timezone(), check_timezone(), DetermineTimeZoneOffset(), show_timezone(), and timestamp2tm().
| bool IgnoreSystemIndexes |
Definition at line 67 of file miscinit.c.
Referenced by AuxiliaryProcessMain(), get_relation_info(), systable_beginscan(), and systable_beginscan_ordered().
| volatile bool ImmediateInterruptOK |
Definition at line 44 of file ipc_test.c.
Referenced by client_read_ended(), ClientAuthentication(), die(), errfinish(), HandleCatchupInterrupt(), HandleNotifyInterrupt(), md5_crypt_verify(), PGSemaphoreLock(), prepare_for_client_read(), proc_exit_prepare(), ProcessInterrupts(), RecoveryConflictInterrupt(), StatementCancelHandler(), and WalSndLoop().
| PGDLLIMPORT volatile uint32 InterruptHoldoffCount |
Definition at line 45 of file ipc_test.c.
Referenced by die(), errfinish(), proc_exit_prepare(), ProcessInterrupts(), RecoveryConflictInterrupt(), and StatementCancelHandler().
| PGDLLIMPORT volatile bool InterruptPending |
Definition at line 41 of file ipc_test.c.
Referenced by die(), internal_flush(), proc_exit_prepare(), ProcessInterrupts(), RecoveryConflictInterrupt(), StatementCancelHandler(), and vacuum_delay_point().
| int IntervalStyle |
Definition at line 95 of file globals.c.
Referenced by DecodeInterval(), interval_out(), PGTYPESinterval_to_asc(), reltimeout(), and set_transmission_modes().
| bool IsBackgroundWorker |
Definition at line 89 of file globals.c.
Referenced by do_start_bgworker(), InitializeSessionUserIdStandalone(), InitPostgres(), InitProcess(), and ProcKill().
| bool IsBinaryUpgrade |
Definition at line 88 of file globals.c.
Referenced by AddEnumLabel(), AssignTypeArrayOid(), create_toast_table(), CreateRole(), heap_create_with_catalog(), index_create(), InitPostgres(), PostmasterMain(), process_postgres_switches(), reaper(), ServerLoop(), TypeCreate(), and TypeShellMake().
| bool IsPostmasterEnvironment |
Definition at line 86 of file globals.c.
Referenced by errstart(), GetNewObjectId(), pg_re_throw(), PostmasterMain(), and RequestCheckpoint().
| PGDLLIMPORT bool IsUnderPostmaster |
Definition at line 48 of file ipc_test.c.
Referenced by AutoVacLauncherMain(), AutoVacuumShmemInit(), AutoVacWorkerMain(), AuxiliaryProcessMain(), BackendStartup(), bootstrap_signals(), BootstrapModeMain(), BTreeShmemInit(), CheckMyDatabase(), CheckRecoveryConsistency(), CreateSharedMemoryAndSemaphores(), DebugFileOpen(), do_start_bgworker(), EventTriggerDDLCommandEnd(), EventTriggerDDLCommandStart(), EventTriggerSQLDrop(), ForgetDatabaseFsyncRequests(), ForgetRelationFsyncRequests(), ForwardFsyncRequest(), GetNewMultiXactId(), GetNewTransactionId(), HandleStartupProcInterrupts(), heap_create_with_catalog(), init_ps_display(), InitCommunication(), InitializeSessionUserId(), InitializeSessionUserIdStandalone(), InitPostgres(), InitProcess(), load_libraries(), LWLockAcquire(), mdinit(), MultiXactShmemInit(), PgArchiverMain(), PGSemaphoreCreate(), PGSharedMemoryReAttach(), pgss_shmem_startup(), PgstatCollectorMain(), PostgresMain(), process_postgres_switches(), process_settings(), ProcKill(), register_unlink(), RegisterBackgroundWorker(), RequestAddinLWLocks(), RequestAddinShmemSpace(), SendPostmasterSignal(), set_config_option(), set_config_sourcefile(), set_ps_display(), SetMultiXactIdLimit(), SetTransactionIdLimit(), ShmemInitStruct(), SimpleLruInit(), StartChildProcess(), StartupXLOG(), superuser_arg(), SyncScanShmemInit(), SysLoggerMain(), TwoPhaseShmemInit(), verify_dictoptions(), XLogArchiveNotify(), and XLogWrite().
| char* local_preload_libraries_string |
Definition at line 1226 of file miscinit.c.
Referenced by process_local_preload_libraries().
| PGDLLIMPORT int maintenance_work_mem |
Definition at line 102 of file globals.c.
Referenced by _bt_spoolinit(), _h_spoolinit(), copy_heap_data(), ginBuildCallback(), ginInsertCleanup(), gistInitBuffering(), lazy_space_alloc(), plan_cluster_use_sort(), RI_Initial_Check(), and validate_index().
| int MaxBackends |
Definition at line 51 of file ipc_test.c.
Referenced by asyncQueueAdvanceTail(), asyncQueueFillWarning(), AsyncShmemInit(), AsyncShmemSize(), AuxiliaryProcessMain(), BackendStatusShmemSize(), BTreeShmemInit(), BTreeShmemSize(), CreateSharedBackendStatus(), CreateSharedInvalidationState(), DeadLockCheckRecurse(), ExpandConstraints(), FindLockCycleRecurse(), GetLockConflicts(), GetLockStatusData(), GetSerializableTransactionSnapshotInt(), InitDeadLockChecking(), InitializeMaxBackends(), InitPostgres(), InitPredicateLocks(), InitProcGlobal(), NumLWLocks(), pgstat_get_backend_current_activity(), pgstat_get_crashed_backend_activity(), pgstat_initialize(), pgstat_read_current_status(), predicatelock_twophase_recover(), PredicateLockShmemSize(), ProcGlobalSemas(), ProcGlobalShmemSize(), SignalBackends(), SInvalShmemSize(), StreamServerPort(), TestConfiguration(), and TwoPhaseShmemInit().
| int MaxConnections |
Definition at line 111 of file globals.c.
Referenced by BootStrapXLOG(), check_autovacuum_max_workers(), CheckRequiredParameterValues(), InitializeMaxBackends(), InitProcGlobal(), MaxLivePostmasterChildren(), PostmasterMain(), RegisterBackgroundWorker(), and XLogReportParameters().
| ProcessingMode Mode |
Definition at line 51 of file miscinit.c.
| PGDLLIMPORT char my_exec_path[] |
Definition at line 52 of file globals.c.
Referenced by adjust_data_dir(), AuxiliaryProcessMain(), get_extension_control_directory(), get_extension_control_filename(), get_extension_script_directory(), get_tsearch_config_filename(), getInstallationPaths(), main(), ParseTzFile(), pg_bindtextdomain(), pg_dlopen(), pg_TZDIR(), PostgresMain(), PostmasterMain(), process_psqlrc(), and set_pglocale_pgservice().
| AuxProcType MyAuxProcType |
Definition at line 70 of file bootstrap.c.
Referenced by AuxiliaryProcessMain().
| long MyCancelKey |
Definition at line 39 of file globals.c.
Referenced by assign_backendlist_entry(), BackendStartup(), PostgresMain(), and StartAutovacuumWorker().
| PGDLLIMPORT Oid MyDatabaseId |
Definition at line 63 of file globals.c.
Referenced by AfterTriggerSetState(), AlterSchemaOwner_internal(), analyze_rel(), asyncQueueNotificationToEntry(), asyncQueueProcessPageEntries(), backend_read_statsfile(), CacheInvalidateCatalog(), CacheInvalidateHeapTuple(), CacheInvalidateRelcache(), CacheInvalidateRelcacheByTuple(), CheckMyDatabase(), checkSharedDependencies(), classIdGetDbId(), CreateProceduralLanguage(), CreateSchemaCommand(), current_database(), database_to_xml_internal(), DeconstructQualifiedName(), do_analyze_rel(), do_autovacuum(), dropdb(), exec_object_restorecon(), ExpandColumnRefStar(), ExportSnapshot(), GetCurrentVirtualXIDs(), GetNewRelFileNode(), GetOldestXmin(), ImportSnapshot(), InitPostgres(), InitTempTableNamespace(), lazy_vacuum_rel(), LocalExecuteInvalidationMessage(), LockDatabaseObject(), LockGXact(), map_sql_catalog_to_xmlschema_types(), map_sql_schema_to_xmlschema_types(), map_sql_table_to_xmlschema(), map_sql_type_to_xml_name(), movedb(), perform_relmap_update(), pg_namespace_aclmask(), pg_relation_filepath(), pgss_store(), pgstat_beshutdown_hook(), pgstat_bestart(), pgstat_fetch_stat_funcentry(), pgstat_fetch_stat_tabentry(), pgstat_report_analyze(), pgstat_report_deadlock(), pgstat_report_recovery_conflict(), pgstat_report_stat(), pgstat_report_tempfile(), pgstat_report_vacuum(), pgstat_reset_counters(), pgstat_reset_single_counter(), pgstat_vacuum_stat(), PrepareToInvalidateCacheTuple(), PrepareTransaction(), ProcArrayInstallImportedXmin(), RangeVarGetAndCheckCreationNamespace(), RangeVarGetCreationNamespace(), RangeVarGetRelidExtended(), RecordTransactionCommit(), ReindexDatabase(), RelationInitLockInfo(), RelationInitPhysicalAddr(), RelationMapFinishBootstrap(), RenameDatabase(), RenameSchema(), ScanPgRelation(), sepgsql_schema_post_create(), SetLocktagRelationOid(), shdepDropOwned(), shdepReassignOwned(), table_recheck_autovac(), transformColumnRef(), UnlockDatabaseObject(), vac_truncate_clog(), vac_update_datfrozenxid(), and vacuum_rel().
| PGDLLIMPORT Oid MyDatabaseTableSpace |
Definition at line 65 of file globals.c.
Referenced by ATExecSetTableSpace(), calculate_tablespace_size(), check_temp_tablespaces(), DefineIndex(), DefineRelation(), get_tablespace(), GetDefaultTablespace(), GetNewRelFileNode(), heap_create(), InitPostgres(), OpenTemporaryFile(), perform_relmap_update(), pg_relation_filepath(), pg_tablespace_location(), PrepareTempTablespaces(), RecordTransactionCommit(), RelationInitPhysicalAddr(), and RelationMapFinishBootstrap().
| int MyPMChildSlot |
Definition at line 40 of file globals.c.
Referenced by assign_backendlist_entry(), BackendStartup(), MarkPostmasterChildActive(), MarkPostmasterChildInactive(), MarkPostmasterChildWalSender(), StartAutovacuumWorker(), and StartOneBackgroundWorker().
| PGDLLIMPORT int MyProcPid |
Definition at line 36 of file globals.c.
Referenced by Async_Listen(), Async_Unlisten(), Async_UnlistenAll(), asyncQueueNotificationToEntry(), asyncQueueReadAllNotifications(), asyncQueueUnregister(), AutoVacLauncherMain(), AutoVacWorkerMain(), AuxiliaryProcessMain(), BackendRun(), BackendStartup(), CheckpointerMain(), CleanupProcSignalState(), DisownLatch(), do_start_bgworker(), Exec_ListenPreCommit(), Exec_UnlistenAllCommit(), Exec_UnlistenCommit(), GetSerializableTransactionSnapshotInt(), InitAuxiliaryProcess(), InitLatch(), InitPostmasterDeathWatchHandle(), InitProcess(), InitWalSenderSlot(), LockBufferForCleanup(), LockTimeoutHandler(), log_line_prefix(), LWLockAcquire(), LWLockAcquireOrWait(), OpenTemporaryFileInTablespace(), OwnLatch(), pg_backend_pid(), PgArchiverMain(), pgstat_bestart(), PgstatCollectorMain(), PostgresMain(), PostmasterMain(), ProcSignalInit(), ProcSleep(), PublishStartupProcessInformation(), ResetLatch(), set_ps_display(), SetLatch(), SharedInvalBackendInit(), SignalBackends(), StatementTimeoutHandler(), SysLoggerMain(), UnlockBuffers(), WaitLatchOrSocket(), WalRcvDie(), WalReceiverMain(), WalSndLastCycleHandler(), write_csvlog(), write_pipe_chunks(), and write_relcache_init_file().
| PGDLLIMPORT struct Port* MyProcPort |
Definition at line 38 of file globals.c.
Referenced by assign_tcp_keepalives_count(), assign_tcp_keepalives_idle(), assign_tcp_keepalives_interval(), BackendInitialize(), inet_client_addr(), inet_client_port(), inet_server_addr(), inet_server_port(), InitPostgres(), internal_flush(), log_disconnections(), log_line_prefix(), pgstat_bestart(), pq_close(), pq_getbyte_if_available(), pq_recvbuf(), pq_set_nonblocking(), show_tcp_keepalives_count(), show_tcp_keepalives_idle(), show_tcp_keepalives_interval(), ssl_cipher(), ssl_client_cert_present(), ssl_client_dn(), ssl_client_dn_field(), ssl_client_serial(), ssl_is_used(), ssl_issuer_dn(), ssl_issuer_field(), ssl_version(), WalSndLoop(), and write_csvlog().
| PGDLLIMPORT pg_time_t MyStartTime |
Definition at line 37 of file globals.c.
Referenced by AutoVacLauncherMain(), AutoVacWorkerMain(), AuxiliaryProcessMain(), BackendInitialize(), BackendStartup(), CreateLockFile(), do_start_bgworker(), log_line_prefix(), PgArchiverMain(), PgstatCollectorMain(), PostgresMain(), PostmasterMain(), setup_formatted_start_time(), SysLoggerMain(), and write_csvlog().
| PGDLLIMPORT int NBuffers |
Definition at line 52 of file ipc_test.c.
| char OutputFileName[] |
Definition at line 50 of file globals.c.
Referenced by AuxiliaryProcessMain(), DebugFileOpen(), and process_postgres_switches().
| char pkglib_path[] |
Definition at line 53 of file globals.c.
Referenced by getInstallationPaths(), PostgresMain(), and substitute_libpath_macro().
| pid_t PostmasterPid |
Definition at line 73 of file globals.c.
Referenced by InitPostmasterDeathWatchHandle(), pg_reload_conf(), PostmasterMain(), and SendPostmasterSignal().
| volatile bool ProcDiePending |
Definition at line 43 of file ipc_test.c.
Referenced by die(), proc_exit_prepare(), ProcessInterrupts(), RecoveryConflictInterrupt(), and SyncRepWaitForLSN().
| PGDLLIMPORT bool process_shared_preload_libraries_in_progress |
Definition at line 1229 of file miscinit.c.
Referenced by init_custom_variable(), load_libraries(), process_shared_preload_libraries(), and RegisterBackgroundWorker().
| volatile bool QueryCancelPending |
Definition at line 42 of file ipc_test.c.
Referenced by AutoVacLauncherMain(), do_autovacuum(), PostgresMain(), proc_exit_prepare(), ProcessInterrupts(), RecoveryConflictInterrupt(), StatementCancelHandler(), and SyncRepWaitForLSN().
| char* shared_preload_libraries_string |
Definition at line 1225 of file miscinit.c.
Referenced by process_shared_preload_libraries().
| int trace_recovery_messages |
Definition at line 420 of file guc.c.
Referenced by StartupXLOG(), and trace_recovery().
| bool VacuumCostActive |
Definition at line 125 of file globals.c.
Referenced by MarkBufferDirty(), MarkBufferDirtyHint(), ReadBuffer_common(), vacuum(), and vacuum_delay_point().
| int VacuumCostBalance |
Definition at line 124 of file globals.c.
Referenced by MarkBufferDirty(), MarkBufferDirtyHint(), ReadBuffer_common(), vacuum(), and vacuum_delay_point().
| int VacuumCostDelay |
Definition at line 118 of file globals.c.
Referenced by autovac_balance_cost(), AutoVacuumUpdateDelay(), do_autovacuum(), table_recheck_autovac(), vacuum(), and vacuum_delay_point().
| int VacuumCostLimit |
Definition at line 117 of file globals.c.
Referenced by autovac_balance_cost(), AutoVacuumUpdateDelay(), do_autovacuum(), table_recheck_autovac(), and vacuum_delay_point().
| int VacuumCostPageDirty |
Definition at line 116 of file globals.c.
Referenced by MarkBufferDirty(), and MarkBufferDirtyHint().
| int VacuumCostPageHit |
Definition at line 114 of file globals.c.
Referenced by ReadBuffer_common().
| int VacuumCostPageMiss |
Definition at line 115 of file globals.c.
Referenced by ReadBuffer_common().
| int VacuumPageDirty |
Definition at line 122 of file globals.c.
Referenced by lazy_vacuum_rel(), MarkBufferDirty(), MarkBufferDirtyHint(), and vacuum().
| int VacuumPageHit |
Definition at line 120 of file globals.c.
Referenced by lazy_vacuum_rel(), ReadBuffer_common(), and vacuum().
| int VacuumPageMiss |
Definition at line 121 of file globals.c.
Referenced by lazy_vacuum_rel(), ReadBuffer_common(), and vacuum().
| PGDLLIMPORT int work_mem |
Definition at line 101 of file globals.c.
Referenced by _bt_spoolinit(), begin_partition(), BuildTupleHashTable(), choose_hashed_distinct(), choose_hashed_grouping(), choose_hashed_setop(), collectMatchBitmap(), connectby(), cost_material(), cost_rescan(), create_merge_append_path(), create_unique_path(), crosstab(), dblink_get_notify(), deflist_to_tuplestore(), each_worker(), exec_init_tuple_store(), ExecChooseHashTableSize(), ExecHashTableCreate(), ExecInitCteScan(), ExecInitRecursiveUnion(), ExecMakeTableFunctionResult(), ExecMaterial(), ExecRecursiveUnion(), ExecSort(), final_cost_mergejoin(), fmgr_sql(), get_crosstab_tuplestore(), ginHeapTupleFastInsert(), initial_cost_mergejoin(), initialize_aggregates(), json_array_elements(), json_populate_recordset(), make_sort(), materializeQueryResult(), materializeResult(), MultiExecBitmapIndexScan(), MultiExecBitmapOr(), pg_available_extension_versions(), pg_available_extensions(), pg_cursor(), pg_event_trigger_dropped_objects(), pg_extension_update_paths(), pg_prepared_statement(), pg_stat_get_wal_senders(), pg_stat_statements(), plperl_return_next(), PortalCreateHoldStore(), query_planner(), storeRow(), subplan_is_hashable(), and xpath_table().