PostgreSQL Source Code
git master
|
Go to the source code of this file.
Typedefs | |
typedef char * | pg_stack_base_t |
typedef enum BackendType | BackendType |
typedef enum ProcessingMode | ProcessingMode |
Enumerations | |
enum | BackendType { B_INVALID = 0, B_AUTOVAC_LAUNCHER, B_AUTOVAC_WORKER, B_BACKEND, B_BG_WORKER, B_BG_WRITER, B_CHECKPOINTER, B_STARTUP, B_WAL_RECEIVER, B_WAL_SENDER, B_WAL_WRITER, B_ARCHIVER, B_STATS_COLLECTOR, B_LOGGER } |
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 433 of file miscadmin.h.
Referenced by ForwardSyncRequest().
#define AmBootstrapProcess | ( | ) | (MyAuxProcType == BootstrapProcess) |
Definition at line 431 of file miscadmin.h.
#define AmCheckpointerProcess | ( | ) | (MyAuxProcType == CheckpointerProcess) |
Definition at line 434 of file miscadmin.h.
Referenced by AbsorbSyncRequests(), CheckpointWriteDelay(), ForwardSyncRequest(), and InitSync().
#define AmStartupProcess | ( | ) | (MyAuxProcType == StartupProcess) |
Definition at line 432 of file miscadmin.h.
Referenced by AdvanceNextFullTransactionIdPastXid(), HotStandbyActiveInReplay(), InitSync(), MaintainLatestCompletedXidRecovery(), and XLogRecGetFullXid().
#define AmWalReceiverProcess | ( | ) | (MyAuxProcType == WalReceiverProcess) |
Definition at line 436 of file miscadmin.h.
Referenced by get_sync_bit().
#define AmWalWriterProcess | ( | ) | (MyAuxProcType == WalWriterProcess) |
Definition at line 435 of file miscadmin.h.
#define CHECK_FOR_INTERRUPTS | ( | ) |
Definition at line 100 of file miscadmin.h.
Referenced by _bt_buildadd(), _bt_pagedel(), _bt_readnextpage(), _bt_unlink_halfdead_page(), _bt_walk_left(), _crypt_blowfish_rn(), _hash_init(), _hash_readnext(), _hash_readprev(), add_partial_path(), add_path(), agg_refill_hash_table(), agg_retrieve_hash_table_in_memory(), analyze_rel(), apply_handle_stream_commit(), ApplyLauncherMain(), apw_dump_now(), ATRewriteTable(), autoprewarm_database_main(), backend_read_statsfile(), BipartiteMatch(), BitmapHeapNext(), blgetbitmap(), bloomBuildCallback(), brin_evacuate_page(), brin_getinsertbuffer(), brin_vacuum_scan(), bringetbitmap(), brinGetTupleForHeapBlock(), brininsert(), brinsummarize(), bt_check_level_from_leftmost(), bt_downlink_missing_check(), bt_right_page_check_scankey(), bt_target_page_check(), BufFileDeleteShared(), BufFileOpenShared(), calculate_database_size(), calculate_relation_size(), calculate_tablespace_size(), check_default_partition_contents(), checkCond(), CheckSCRAMAuth(), ClientAuthentication(), cluster_rel(), collect_corrupt_items(), collect_visibility_data(), ConditionVariableTimedSleep(), copy_file(), copy_messages(), copy_read_data(), copydir(), CopyFrom(), CopyTo(), count_nondeletable_pages(), CountOtherDBBackends(), db_dir_size(), DecodingContextFindStartpoint(), do_autovacuum(), do_des(), do_pg_stop_backup(), dofindsubquery(), dsm_impl_op(), errfinish(), exec_execute_message(), exec_parse_message(), exec_replication_command(), exec_simple_query(), exec_stmts(), exec_toplevel_block(), ExecAgg(), ExecAppend(), ExecCustomScan(), ExecFindPartition(), ExecGather(), ExecGatherMerge(), ExecGroup(), ExecHashIncreaseNumBatches(), ExecHashIncreaseNumBuckets(), ExecHashJoinGetSavedTuple(), ExecHashJoinImpl(), ExecHashRemoveNextSkewBucket(), ExecIncrementalSort(), ExecLimit(), ExecLockRows(), ExecMakeTableFunctionResult(), ExecMaterial(), ExecMergeAppend(), ExecMergeJoin(), ExecModifyTable(), ExecNestLoop(), ExecParallelHashIncreaseNumBuckets(), ExecParallelHashJoinPartitionOuter(), ExecParallelHashRepartitionFirst(), ExecParallelHashRepartitionRest(), ExecProjectSet(), ExecRecursiveUnion(), ExecResult(), ExecScanFetch(), ExecScanHashTableForUnmatched(), ExecSetOp(), ExecSort(), ExecSubPlan(), ExecUnique(), executeItemOptUnwrapTarget(), ExecWindowAgg(), fetch_input_tuple(), findPartialMatch(), flattenJsonPathParseItem(), fsm_vacuum_page(), gather_getnext(), gather_merge_init(), gather_readnext(), gcd_var(), get_query_def(), get_rule_expr(), get_setop_query(), GetMultiXactIdMembers(), GetNewOidWithIndex(), GetNewRelFileNode(), getNextNearest(), ginbuild(), ginBuildCallback(), gingetbitmap(), gist_indexsortbuild_pagestate_flush(), gistgetbitmap(), gistgettuple(), gistProcessItup(), gm_readnext_tuple(), HandleFunctionRequest(), heap_force_common(), heap_lock_updated_tuple_rec(), heap_multi_insert(), heapam_index_build_range_scan(), heapam_index_validate_scan(), heapam_relation_copy_for_cluster(), heapam_scan_sample_next_tuple(), heapgetpage(), hypothetical_dense_rank_final(), hypothetical_rank_common(), ident_inet(), IndexCheckExclusion(), IndexNext(), IndexNextWithReorder(), IndexOnlyNext(), initialize_worker_spi(), interactive_getc(), InvalidateObsoleteReplicationSlots(), lazy_truncate_heap(), log_newpage_range(), logicalrep_worker_stop(), LogicalRepApplyLoop(), lseg_inside_poly(), make_bounded_heap(), mode_final(), mq_putmessage(), MultiExecBitmapIndexScan(), MultiExecProcNode(), nfalsepos_for_missing_strings(), numeric_fac(), OpenTableList(), pg_logical_replication_slot_advance(), pg_logical_slot_get_changes_guts(), pg_prewarm(), pg_promote(), pg_sleep(), pg_visibility_map_summary(), pgfdw_get_cleanup_result(), pgfdw_get_result(), PGSemaphoreLock(), pgstat_collect_oids(), pgstat_get_backend_current_activity(), pgstat_heap(), pgstat_index(), pgstat_read_current_status(), pgstat_vacuum_stat(), pgstathashindex(), pgstatindex_impl(), plperl_spi_prepare(), populate_with_dummy_strings(), PortalRunMulti(), postgresAcquireSampleRowsFunc(), PostgresMain(), predicate_implied_by_simple_clause(), predicate_refuted_by_simple_clause(), printJsonPathItem(), process_ordered_aggregate_multi(), ProcessClientReadInterrupt(), ProcessClientWriteInterrupt(), ProcessWalRcvInterrupts(), ProcSleep(), ProcWaitForSignal(), puttuple_common(), random_relative_prime(), RE_compile_and_cache(), RE_wchar_execute(), read_local_xlog_page(), refresh_matview_datafill(), regexp_fixed_prefix(), ReindexRelationConcurrently(), RelationCopyStorage(), repeat(), replace_text(), replace_text_regexp(), replorigin_create(), RequestCheckpoint(), revmap_extend_and_get_blkno(), sendAuthRequest(), sendDir(), set_rtable_names(), setop_retrieve_hash_table(), shm_mq_receive_bytes(), shm_mq_send_bytes(), shm_mq_wait_internal(), spgdoinsert(), spgWalk(), split_text(), statapprox_heap(), storeQueryResult(), summarize_range(), test_re_compile(), test_re_execute(), test_shm_mq_pipelined(), tfuncLoadRows(), throttle(), TidNext(), toast_save_datum(), TS_execute_recurse(), tuplesort_heap_insert(), tuplesort_heap_replace_top(), tuplesort_skiptuples(), tuplestore_skiptuples(), vacuum_delay_point(), vacuum_rel(), validateForeignKeyConstraint(), wait_for_relation_state_change(), wait_for_worker_state_change(), wait_for_workers_to_become_ready(), wait_pid(), WaitExceedsMaxStandbyDelay(), WaitForBackgroundWorkerShutdown(), WaitForBackgroundWorkerStartup(), WaitForParallelWorkersToAttach(), WaitForParallelWorkersToFinish(), WaitForProcSignalBarrier(), WaitForReplicationWorkerAttach(), walkdir(), WalSndLoop(), WalSndWaitForWal(), WalSndWriteData(), and window_gettupleslot().
#define DATEORDER_DMY 1 |
Definition at line 222 of file miscadmin.h.
Referenced by check_datestyle(), DecodeNumber(), EncodeDateOnly(), EncodeDateTime(), locale_date_order(), and setup_config().
#define DATEORDER_MDY 2 |
Definition at line 223 of file miscadmin.h.
Referenced by check_datestyle(), locale_date_order(), and setup_config().
#define DATEORDER_YMD 0 |
Definition at line 221 of file miscadmin.h.
Referenced by check_datestyle(), DecodeNumber(), locale_date_order(), and setup_config().
#define END_CRIT_SECTION | ( | ) |
Definition at line 135 of file miscadmin.h.
Referenced by _bt_dedup_pass(), _bt_delitems_delete(), _bt_delitems_vacuum(), _bt_getroot(), _bt_insertonpg(), _bt_mark_page_halfdead(), _bt_newroot(), _bt_split(), _bt_unlink_halfdead_page(), _bt_update_meta_cleanup_info(), _hash_addovflpage(), _hash_doinsert(), _hash_expandtable(), _hash_freeovflpage(), _hash_splitbucket(), _hash_squeezebucket(), _hash_vacuum_one_page(), AbsorbSyncRequests(), addLeafTuple(), brin_doinsert(), brin_doupdate(), brin_initialize_empty_new_buffer(), brinbuildempty(), brinRevmapDesummarizeRange(), CreateCheckPoint(), CreateEndOfRecoveryRecord(), createPostingTree(), CreateSlotOnDisk(), do_setval(), doPickSplit(), EndPrepare(), fill_seq_with_data(), FreeSpaceMapPrepareTruncateRel(), GenericXLogFinish(), ginbuild(), ginbuildempty(), ginbulkdelete(), ginDeletePage(), ginHeapTupleFastInsert(), ginPlaceToPage(), ginUpdateStats(), ginVacuumPostingTreeLeaf(), gistbuild(), gistbuildempty(), gistdeletepage(), gistplacetopage(), gistprunepage(), gistvacuumpage(), hashbucketcleanup(), hashbulkdelete(), heap_abort_speculative(), heap_delete(), heap_finish_speculative(), heap_force_common(), heap_inplace_update(), heap_insert(), heap_lock_tuple(), heap_lock_updated_tuple_rec(), heap_multi_insert(), heap_page_prune(), heap_update(), lazy_scan_heap(), lazy_vacuum_page(), log_newpage_range(), moveLeafs(), MultiXactIdCreateFromMembers(), nextval_internal(), PostPrepare_Locks(), RecordTransactionAbort(), RecordTransactionAbortPrepared(), RecordTransactionCommit(), RecordTransactionCommitPrepared(), ReplicationSlotDropPtr(), RestoreSlotFromDisk(), revmap_physical_extend(), SaveSlotToPath(), shiftList(), SlruPhysicalWritePage(), spgAddNodeAction(), spgbuild(), spgSplitNodeAction(), TruncateMultiXact(), UpdateFullPageWrites(), vacuumLeafPage(), vacuumLeafRoot(), vacuumRedirectAndPlaceholder(), visibilitymap_prepare_truncate(), visibilitymap_set(), write_relmap_file(), writeListPage(), XLogBackgroundFlush(), XLogFlush(), and XLogInsertRecord().
#define GetProcessingMode | ( | ) | Mode |
Definition at line 398 of file miscadmin.h.
#define HOLD_CANCEL_INTERRUPTS | ( | ) | (QueryCancelHoldoffCount++) |
Definition at line 125 of file miscadmin.h.
Referenced by CopyGetData(), and SocketBackend().
#define HOLD_INTERRUPTS | ( | ) | (InterruptHoldoffCount++) |
Definition at line 117 of file miscadmin.h.
Referenced by AbortSubTransaction(), AbortTransaction(), AutoVacLauncherMain(), AutoVacWorkerMain(), BackgroundWriterMain(), CheckpointerMain(), CommitTransaction(), DestroyParallelContext(), do_autovacuum(), FinishPreparedTransaction(), handle_sig_alarm(), HandleParallelMessages(), LockErrorCleanup(), LWLockAcquire(), LWLockAcquireOrWait(), LWLockConditionalAcquire(), LWLockReleaseAll(), LWLockWaitForVar(), perform_work_item(), PostgresMain(), PrepareTransaction(), quickdie(), StartBackgroundWorker(), and WalWriterMain().
#define INTSTYLE_ISO_8601 3 |
Definition at line 238 of file miscadmin.h.
Referenced by EncodeInterval().
#define INTSTYLE_POSTGRES 0 |
Definition at line 235 of file miscadmin.h.
Referenced by EncodeInterval(), and set_transmission_modes().
#define INTSTYLE_POSTGRES_VERBOSE 1 |
Definition at line 236 of file miscadmin.h.
Referenced by DecodeInterval(), EncodeInterval(), and PGTYPESinterval_to_asc().
#define INTSTYLE_SQL_STANDARD 2 |
Definition at line 237 of file miscadmin.h.
Referenced by DecodeInterval(), and EncodeInterval().
#define InvalidPid (-1) |
Definition at line 32 of file miscadmin.h.
Referenced by apw_detach_shmem(), apw_dump_now(), apw_init_shmem(), apw_load_buffers(), asyncQueueAdvanceTail(), asyncQueueFillWarning(), asyncQueueUnregister(), AsyncShmemInit(), autoprewarm_main(), autoprewarm_start_worker(), BackgroundWorkerShmemInit(), ForgetUnstartedBackgroundWorkers(), GetBackgroundWorkerPid(), GetSafeSnapshot(), GetSerializableTransactionSnapshot(), RegisterDynamicBackgroundWorker(), RestoreTransactionSnapshot(), and SignalBackends().
#define IsBootstrapProcessingMode | ( | ) | (Mode == BootstrapProcessing) |
Definition at line 394 of file miscadmin.h.
Referenced by AtEOXact_cleanup(), BootstrapModeMain(), CacheInvalidateHeapTuple(), create_toast_table(), DefineIndex(), ExecUpdate(), format_operator_extended(), format_procedure_extended(), formrdesc(), get_type_io_data(), get_user_default_acl(), GetNewOidWithIndex(), GetNewTransactionId(), heap_create_with_catalog(), heap_inplace_update(), heapam_index_build_range_scan(), index_constraint_create(), index_create(), index_update_stats(), initialize_acl(), InitializeSearchPath(), InitializeSessionUserId(), InitPostgres(), InitXLOGAccess(), MaintainLatestCompletedXid(), needs_toast_table(), RangeVarGetAndCheckCreationNamespace(), readRecoverySignalFile(), recordMultipleDependencies(), recordSharedDependencyOn(), regclassin(), regclassout(), regcollationin(), regcollationout(), regconfigin(), regdictionaryin(), regnamespacein(), regoperatorin(), regoperin(), regoperout(), regprocedurein(), regprocin(), regprocout(), regrolein(), regtypein(), regtypeout(), relation_open(), RelationCacheInitializePhase2(), RelationCacheInitializePhase3(), RelationDecrementReferenceCount(), RelationIncrementReferenceCount(), RelationMapFinishBootstrap(), RelationMapInitializePhase2(), RelationMapInitializePhase3(), RelationMapUpdateMap(), SearchCatCacheMiss(), TypeCreate(), TypeShellMake(), and XLogInsert().
#define IsInitProcessingMode | ( | ) | (Mode == InitProcessing) |
Definition at line 395 of file miscadmin.h.
Referenced by _ShowOption(), BackgroundWorkerInitializeConnection(), and BackgroundWorkerInitializeConnectionByOid().
#define IsNormalProcessingMode | ( | ) | (Mode == NormalProcessing) |
Definition at line 396 of file miscadmin.h.
Referenced by heap_create(), heap_create_with_catalog(), index_build(), index_constraint_create(), and index_create().
Definition at line 242 of file miscadmin.h.
Referenced by abstime2tm(), and EncodeDateTime().
#define RESUME_CANCEL_INTERRUPTS | ( | ) |
Definition at line 127 of file miscadmin.h.
Referenced by CopyGetData(), and SocketBackend().
#define RESUME_INTERRUPTS | ( | ) |
Definition at line 119 of file miscadmin.h.
Referenced by AbortSubTransaction(), AbortTransaction(), AutoVacLauncherMain(), BackgroundWriterMain(), CheckpointerMain(), CommitTransaction(), DestroyParallelContext(), do_autovacuum(), FinishPreparedTransaction(), handle_sig_alarm(), HandleParallelMessages(), LockErrorCleanup(), LWLockAcquireOrWait(), LWLockConditionalAcquire(), LWLockRelease(), LWLockWaitForVar(), perform_work_item(), PostgresMain(), PrepareTransaction(), and WalWriterMain().
#define SECURITY_LOCAL_USERID_CHANGE 0x0001 |
Definition at line 299 of file miscadmin.h.
Referenced by CreateSchemaCommand(), ExecRefreshMatView(), execute_extension_script(), fmgr_security_definer(), InLocalUserIdChange(), refresh_by_match_merge(), ri_PerformCheck(), ri_PlanCheck(), and SetUserIdAndContext().
#define SECURITY_NOFORCE_RLS 0x0004 |
Definition at line 301 of file miscadmin.h.
Referenced by InNoForceRLSOperation(), ri_PerformCheck(), and ri_PlanCheck().
#define SECURITY_RESTRICTED_OPERATION 0x0002 |
Definition at line 300 of file miscadmin.h.
Referenced by do_analyze_rel(), ExecCreateTableAs(), ExecRefreshMatView(), index_build(), InSecurityRestrictedOperation(), refresh_by_match_merge(), vacuum_rel(), and validate_index().
#define SetProcessingMode | ( | mode | ) |
Definition at line 400 of file miscadmin.h.
Referenced by AutoVacLauncherMain(), AutoVacWorkerMain(), AuxiliaryProcessMain(), BackgroundWorkerInitializeConnection(), BackgroundWorkerInitializeConnectionByOid(), PostgresMain(), and StartBackgroundWorker().
#define START_CRIT_SECTION | ( | ) | (CritSectionCount++) |
Definition at line 133 of file miscadmin.h.
Referenced by _bt_dedup_pass(), _bt_delitems_delete(), _bt_delitems_vacuum(), _bt_getroot(), _bt_insertonpg(), _bt_mark_page_halfdead(), _bt_newroot(), _bt_split(), _bt_unlink_halfdead_page(), _bt_update_meta_cleanup_info(), _hash_addovflpage(), _hash_doinsert(), _hash_expandtable(), _hash_freeovflpage(), _hash_splitbucket(), _hash_squeezebucket(), _hash_vacuum_one_page(), AbsorbSyncRequests(), addLeafTuple(), brin_doinsert(), brin_doupdate(), brin_initialize_empty_new_buffer(), brinbuildempty(), brinRevmapDesummarizeRange(), CreateCheckPoint(), CreateEndOfRecoveryRecord(), createPostingTree(), CreateSlotOnDisk(), do_setval(), doPickSplit(), EndPrepare(), fill_seq_with_data(), FreeSpaceMapPrepareTruncateRel(), GenericXLogFinish(), GetNewMultiXactId(), ginbuild(), ginbuildempty(), ginbulkdelete(), ginDeletePage(), ginHeapTupleFastInsert(), ginPlaceToPage(), ginUpdateStats(), ginVacuumPostingTreeLeaf(), gistbuild(), gistbuildempty(), gistdeletepage(), gistplacetopage(), gistprunepage(), gistvacuumpage(), hashbucketcleanup(), hashbulkdelete(), heap_abort_speculative(), heap_delete(), heap_finish_speculative(), heap_force_common(), heap_inplace_update(), heap_insert(), heap_lock_tuple(), heap_lock_updated_tuple_rec(), heap_multi_insert(), heap_page_prune(), heap_update(), lazy_scan_heap(), lazy_vacuum_page(), log_newpage_range(), moveLeafs(), nextval_internal(), PostPrepare_Locks(), RecordTransactionAbort(), RecordTransactionAbortPrepared(), RecordTransactionCommit(), RecordTransactionCommitPrepared(), ReplicationSlotDropPtr(), RestoreSlotFromDisk(), revmap_physical_extend(), SaveSlotToPath(), shiftList(), SlruPhysicalWritePage(), spgAddNodeAction(), spgbuild(), spgSplitNodeAction(), TruncateMultiXact(), UpdateFullPageWrites(), vacuumLeafPage(), vacuumLeafRoot(), vacuumRedirectAndPlaceholder(), visibilitymap_prepare_truncate(), visibilitymap_set(), write_relmap_file(), writeListPage(), XLogBackgroundFlush(), XLogFlush(), and XLogInsertRecord().
#define USE_GERMAN_DATES 3 |
Definition at line 217 of file miscadmin.h.
Referenced by check_datestyle(), EncodeDateOnly(), and EncodeDateTime().
#define USE_ISO_DATES 1 |
Definition at line 215 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 214 of file miscadmin.h.
Referenced by check_datestyle(), EncodeDateOnly(), and EncodeDateTime().
#define USE_SQL_DATES 2 |
Definition at line 216 of file miscadmin.h.
Referenced by check_datestyle(), EncodeDateOnly(), and EncodeDateTime().
#define USE_XSD_DATES 4 |
Definition at line 218 of file miscadmin.h.
Referenced by EncodeDateOnly(), EncodeDateTime(), EncodeTimezone(), JsonEncodeDateTime(), and map_sql_value_to_xml_value().
typedef enum BackendType BackendType |
typedef char* pg_stack_base_t |
Definition at line 276 of file miscadmin.h.
typedef enum ProcessingMode ProcessingMode |
enum AuxProcType |
Enumerator | |
---|---|
NotAnAuxProcess | |
CheckerProcess | |
BootstrapProcess | |
StartupProcess | |
BgWriterProcess | |
CheckpointerProcess | |
WalWriterProcess | |
WalReceiverProcess | |
NUM_AUXPROCTYPES |
Definition at line 415 of file miscadmin.h.
enum BackendType |
Enumerator | |
---|---|
B_INVALID | |
B_AUTOVAC_LAUNCHER | |
B_AUTOVAC_WORKER | |
B_BACKEND | |
B_BG_WORKER | |
B_BG_WRITER | |
B_CHECKPOINTER | |
B_STARTUP | |
B_WAL_RECEIVER | |
B_WAL_SENDER | |
B_WAL_WRITER | |
B_ARCHIVER | |
B_STATS_COLLECTOR | |
B_LOGGER |
Definition at line 311 of file miscadmin.h.
enum ProcessingMode |
Enumerator | |
---|---|
BootstrapProcessing | |
InitProcessing | |
NormalProcessing |
Definition at line 385 of file miscadmin.h.
void AddToDataDirLockFile | ( | int | target_line, |
const char * | str | ||
) |
Definition at line 1329 of file miscinit.c.
References close, DIRECTORY_LOCK_FILE, ereport, errcode_for_file_access(), errmsg(), fd(), LOG, PG_BINARY, pg_fsync(), pg_pwrite(), pgstat_report_wait_end(), pgstat_report_wait_start(), read, snprintf, WAIT_EVENT_LOCK_FILE_ADDTODATADIR_READ, WAIT_EVENT_LOCK_FILE_ADDTODATADIR_SYNC, and WAIT_EVENT_LOCK_FILE_ADDTODATADIR_WRITE.
Referenced by InternalIpcMemoryCreate(), pmdie(), PostmasterMain(), reaper(), and sigusr1_handler().
bool BackupInProgress | ( | void | ) |
Definition at line 11935 of file xlog.c.
References BACKUP_LABEL_FILE, and stat.
Referenced by pg_is_in_backup(), and PostmasterStateMachine().
void BaseInit | ( | void | ) |
Definition at line 537 of file postinit.c.
References DebugFileOpen(), InitBufferPoolAccess(), InitCommunication(), InitFileAccess(), InitSync(), and smgrinit().
Referenced by AutoVacLauncherMain(), AutoVacWorkerMain(), AuxiliaryProcessMain(), PostgresMain(), and StartBackgroundWorker().
void CancelBackup | ( | void | ) |
Definition at line 11955 of file xlog.c.
References BACKUP_LABEL_FILE, BACKUP_LABEL_OLD, DEBUG1, durable_rename(), ereport, errcode_for_file_access(), errdetail(), errmsg(), LOG, stat, TABLESPACE_MAP, TABLESPACE_MAP_OLD, and WARNING.
Referenced by PostmasterStateMachine().
void ChangeToDataDir | ( | void | ) |
Definition at line 416 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 3377 of file postgres.c.
References ereport, errcode(), errhint(), errmsg(), ERROR, max_stack_depth, and stack_is_too_deep().
Referenced by AlterTypeRecurse(), apply_scanjoin_target_to_paths(), checkCond(), clean_NOT_intree(), clean_stopword_intree(), cntsize(), contains_required_value(), convertJsonbValue(), copyObjectImpl(), Cover(), create_plan_recurse(), datum_to_json(), datum_to_jsonb(), dofindsubquery(), emit_jsp_gin_entries(), equal(), EventTriggerInvoke(), ExecEndNode(), ExecEvalSubPlan(), ExecInitExprRec(), ExecInitNode(), ExecMakeFunctionResultSet(), ExecProcNodeFirst(), ExecShutdownNode(), execute(), executeAnyItem(), executeItemOptUnwrapTarget(), expand_partitioned_rtentry(), expression_tree_mutator(), expression_tree_walker(), extract_jsp_bool_expr(), fillQT(), find_composite_type_dependencies(), find_matching_subplans_recurse(), findoprnd(), findoprnd_recurse(), flatten_grouping_sets(), flattenJsonPathParseItem(), FreePageManagerDumpBtree(), freetree(), generate_partition_qual(), generate_partitionwise_join_paths(), get_query_def(), get_rels_with_domain(), get_rule_expr(), get_setop_query(), get_steps_using_prefix_recurse(), gistSplit(), hash_range(), hash_range_extended(), hash_record(), hash_record_extended(), hk_depth_search(), infix(), inline_set_returning_function(), int_query_opr_selec(), JsonbDeepContains(), JumbleExpr(), ltree_execute(), makepol(), maketree(), MatchText(), MultiExecProcNode(), outNode(), parse_array(), parse_object(), parseNodeString(), plainnode(), planstate_tree_walker(), plperl_hash_from_tuple(), plperl_sv_to_datum(), PLy_input_setup_func(), PLy_output_setup_func(), populate_array_dim_jsonb(), populate_record_field(), printJsonPathItem(), QT2QTN(), QTNBinary(), QTNClearFlags(), QTNCopy(), QTNFree(), QTNodeCompare(), QTNSort(), QTNTernary(), range_cmp(), range_in(), range_out(), range_recv(), range_send(), raw_expression_tree_walker(), record_cmp(), record_eq(), record_in(), record_out(), record_recv(), record_send(), recurse_set_operations(), relation_is_updatable(), resolve_special_varno(), set_append_rel_size(), setPath(), split_array(), standard_ProcessUtility(), transformExprRecurse(), transformSetOperationTree(), traverse_lacons(), try_partitionwise_join(), TS_execute_recurse(), TS_phrase_execute(), tsquery_opr_selec(), and tsquery_requires_match().
void checkDataDir | ( | void | ) |
Definition at line 302 of file miscinit.c.
References Assert, data_directory_mode, DataDir, ereport, errcode(), errcode_for_file_access(), errdetail(), errhint(), errmsg(), FATAL, pg_dir_create_mode, pg_mode_mask, PG_MODE_MASK_GROUP, S_ISDIR, SetDataDirectoryCreatePerm(), stat::st_mode, stat::st_uid, stat, and ValidatePgVersion().
Referenced by AuxiliaryProcessMain(), BackendRun(), PostgresMain(), and PostmasterMain().
void CreateDataDirLockFile | ( | bool | amPostmaster | ) |
Definition at line 1273 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 1282 of file miscinit.c.
References CreateLockFile(), MAXPGPATH, and snprintf.
Referenced by StreamServerPort().
int get_hash_mem | ( | void | ) |
Definition at line 3389 of file nodeHash.c.
References Assert, hash_mem_multiplier, MAX_KILOBYTES, and work_mem.
Referenced by BuildTupleHashTableExt(), choose_hashed_setop(), consider_groupingsets_paths(), create_unique_path(), ExecChooseHashTableSize(), ExecParallelHashIncreaseNumBatches(), final_cost_hashjoin(), hash_agg_set_limits(), hash_choose_num_partitions(), subpath_is_hashable(), and subplan_is_hashable().
Oid GetAuthenticatedUserId | ( | void | ) |
Definition at line 535 of file miscinit.c.
References AssertState, AuthenticatedUserId, and OidIsValid.
Referenced by InitializeParallelDSM().
const char* GetBackendTypeDesc | ( | BackendType | backendType | ) |
Definition at line 230 of file miscinit.c.
References B_ARCHIVER, B_AUTOVAC_LAUNCHER, B_AUTOVAC_WORKER, B_BACKEND, B_BG_WORKER, B_BG_WRITER, B_CHECKPOINTER, B_INVALID, B_LOGGER, B_STARTUP, B_STATS_COLLECTOR, B_WAL_RECEIVER, B_WAL_SENDER, and B_WAL_WRITER.
Referenced by BackendInitialize(), init_ps_display(), log_line_prefix(), pg_stat_get_activity(), and write_csvlog().
Oid GetCurrentRoleId | ( | void | ) |
Definition at line 835 of file miscinit.c.
References InvalidOid, OuterUserId, and SetRoleIsActive.
Referenced by InitializeParallelDSM(), and show_role().
Oid GetOuterUserId | ( | void | ) |
Definition at line 487 of file miscinit.c.
References AssertState, OidIsValid, and OuterUserId.
Referenced by DropRole(), and RenameRole().
Oid GetSessionUserId | ( | void | ) |
Definition at line 510 of file miscinit.c.
References AssertState, OidIsValid, and SessionUserId.
Referenced by check_role(), DropRole(), get_rolespec_oid(), get_rolespec_tuple(), InitPostgres(), is_admin_of_role(), pgstat_bestart(), RenameRole(), and session_user().
Oid GetUserId | ( | void | ) |
Definition at line 476 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(), AlterOperator(), AlterOpFamilyAdd(), AlterPublication(), AlterPublicationOwner_internal(), AlterRole(), AlterRoleSet(), AlterSchemaOwner_internal(), AlterStatistics(), AlterSubscription(), AlterSubscriptionOwner_internal(), AlterTableMoveAll(), AlterTableSpaceOptions(), AlterTSConfiguration(), AlterTSDictionary(), AlterType(), AlterTypeNamespace_oid(), AlterTypeOwner(), ATExecAddColumn(), ATExecChangeOwner(), ATPrepAlterColumnType(), ATPrepSetTableSpace(), ATSimplePermissions(), be_lo_put(), be_lo_unlink(), binary_upgrade_create_empty_extension(), brin_desummarize_range(), brin_summarize_range(), BuildCachedPlan(), BuildDescForRelation(), BuildIndexValueDescription(), calculate_database_size(), calculate_tablespace_size(), call_pltcl_start_proc(), check_enable_rls(), check_permissions(), check_temp_tablespaces(), CheckCachedPlan(), checkDomainOwner(), checkEnumOwner(), checkFkeyPermissions(), CheckFunctionValidatorAccess(), CheckMyDatabase(), cluster_rel(), CommentObject(), compile_plperl_function(), compile_pltcl_function(), CompleteCachedPlan(), compute_return_type(), convert_and_check_filename(), create_foreign_modify(), CreateCast(), CreateConversionCommand(), createdb(), CreateEventTrigger(), CreateExtensionInternal(), CreateForeignDataWrapper(), CreateForeignServer(), CreateForeignTable(), CreateFunction(), CreateOpFamily(), CreateProceduralLanguage(), CreatePublication(), CreateRole(), CreateStatistics(), CreateSubscription(), CreateTableSpace(), CreateTransform(), CreateTrigger(), current_user(), currtid_internal(), currval_oid(), DefineAggregate(), DefineCollation(), DefineDomain(), DefineEnum(), DefineIndex(), DefineOpClass(), DefineOperator(), DefineOpFamily(), DefineQueryRewrite(), DefineRange(), DefineRelation(), DefineTSConfiguration(), DefineTSDictionary(), DefineType(), DelRoleMems(), do_setval(), DoCopy(), dropdb(), DropOwnedObjects(), DropRole(), DropSubscription(), DropTableSpace(), EnableDisableRule(), examine_simple_variable(), examine_variable(), ExecAlterDefaultPrivilegesStmt(), ExecAlterExtensionContentsStmt(), ExecAlterExtensionStmt(), ExecAlterObjectDependsStmt(), ExecBuildGroupingEqual(), ExecBuildSlotPartitionKeyDescription(), ExecBuildSlotValueDescription(), ExecCheckRTEPerms(), ExecGrant_Attribute(), ExecGrant_Database(), ExecGrant_Fdw(), ExecGrant_ForeignServer(), ExecGrant_Function(), ExecGrant_Language(), ExecGrant_Largeobject(), ExecGrant_Namespace(), ExecGrant_Relation(), ExecGrant_Tablespace(), ExecGrant_Type(), ExecInitAgg(), ExecInitExprRec(), ExecInitFunc(), ExecInitWindowAgg(), ExecSecLabelStmt(), execute_extension_script(), ExecuteCallStmt(), ExecuteDoStmt(), ExecuteTruncateGuts(), extension_is_trusted(), file_fdw_validator(), findRangeCanonicalFunction(), findRangeSubtypeDiffFunction(), FinishPreparedTransaction(), get_connect_string(), get_explain_guc_options(), get_other_operator(), get_rel_from_relname(), get_rolespec_oid(), get_rolespec_tuple(), get_row_security_policies(), get_tables_to_cluster(), GetConfigOption(), GetConfigOptionByName(), GetConfigOptionByNum(), GetConfigOptionResetString(), gin_clean_pending_list(), 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(), ImportForeignSchema(), init_sexpr(), InitializeSearchPath(), InitPostgres(), InitTempTableNamespace(), inline_function(), inline_set_returning_function(), insert_username(), interpret_function_parameter_list(), inv_create(), inv_open(), LargeObjectCreate(), lastval(), lookup_agg_function(), LookupCreationNamespace(), LookupExplicitNamespace(), MergeAttributes(), movedb(), nextval_internal(), OperatorCreate(), OperatorShellMake(), pg_has_role_id(), pg_has_role_name(), pg_import_system_collations(), pg_prewarm(), pg_sequence_last_value(), pg_sequence_parameters(), pg_signal_backend(), pg_stat_get_wal_receiver(), pg_stat_get_wal_senders(), pg_stat_statements_internal(), pgrowlocks(), pgss_store(), pgstat_get_backend_current_activity(), pltcl_fetch_interp(), postgresBeginDirectModify(), postgresBeginForeignScan(), postgresGetForeignRelSize(), postgresImportForeignSchema(), PrepareTempTablespaces(), PrepareTransaction(), PublicationAddTables(), RangeVarCallbackForAlterRelation(), RangeVarCallbackForDropRelation(), RangeVarCallbackForLockTable(), RangeVarCallbackForPolicy(), RangeVarCallbackForReindexIndex(), RangeVarCallbackForRenameRule(), RangeVarCallbackForRenameTrigger(), RangeVarCallbackOwnsRelation(), RangeVarCallbackOwnsTable(), RangeVarGetAndCheckCreationNamespace(), ReassignOwnedObjects(), recomputeNamespacePath(), ReindexMultipleTables(), RemoveObjects(), RemoveRoleFromObjectPolicy(), renameatt_check(), RenameDatabase(), RenameSchema(), RenameTableSpace(), RenameType(), RevalidateCachedQuery(), RI_Initial_Check(), ri_ReportViolation(), sanity_check_relation(), select_perl_context(), set_foreign_rel_properties(), ShowAllGUCConfig(), statext_is_compatible_clause(), superuser(), TerminateOtherDBBackends(), transformTableLikeClause(), truncate_check_perms(), user_mapping_ddl_aclcheck(), vacuum_is_relation_owner(), ValidateJoinEstimator(), and ValidateRestrictionEstimator().
void GetUserIdAndSecContext | ( | Oid * | userid, |
int * | sec_context | ||
) |
Definition at line 581 of file miscinit.c.
References CurrentUserId, and SecurityRestrictionContext.
Referenced by CreateSchemaCommand(), do_analyze_rel(), ExecCreateTableAs(), ExecRefreshMatView(), execute_extension_script(), fmgr_security_definer(), index_build(), InitializeParallelDSM(), PushTransaction(), ri_PerformCheck(), ri_PlanCheck(), StartTransaction(), vacuum_rel(), and validate_index().
Definition at line 891 of file miscinit.c.
References AUTHOID, ereport, errcode(), errmsg(), ERROR, GETSTRUCT, HeapTupleIsValid, NameStr, ObjectIdGetDatum, pstrdup(), ReleaseSysCache(), rolname, and SearchSysCache1().
Referenced by check_is_member_of_role(), current_user(), execute_extension_script(), getObjectDescription(), getObjectIdentityParts(), insert_username(), regroleout(), RemoveRoleFromObjectPolicy(), and session_user().
Definition at line 657 of file miscinit.c.
References AUTHOID, GETSTRUCT, HeapTupleIsValid, ObjectIdGetDatum, ReleaseSysCache(), rolreplication, and SearchSysCache1().
Referenced by check_permissions(), and InitPostgres().
void InitializeMaxBackends | ( | void | ) |
Definition at line 515 of file postinit.c.
References Assert, autovacuum_max_workers, elog, ERROR, MAX_BACKENDS, max_wal_senders, max_worker_processes, MaxBackends, and MaxConnections.
Referenced by AuxiliaryProcessMain(), PostgresMain(), and PostmasterMain().
void InitializeSessionUserId | ( | const char * | rolename, |
Oid | useroid | ||
) |
Definition at line 675 of file miscinit.c.
References AcceptInvalidationMessages(), AssertState, AuthenticatedUserId, AuthenticatedUserIsSuperuser, AUTHNAME, AUTHOID, CountUserBackends(), ereport, errcode(), errmsg(), FATAL, GETSTRUCT, HeapTupleIsValid, IsBootstrapProcessingMode, IsUnderPostmaster, MyProc, NameStr, ObjectIdGetDatum, 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 778 of file miscinit.c.
References AssertState, AuthenticatedUserId, AuthenticatedUserIsSuperuser, IsAutoVacuumWorkerProcess(), IsBackgroundWorker, IsUnderPostmaster, OidIsValid, and SetSessionUserId().
Referenced by InitPostgres().
void InitPostgres | ( | const char * | in_dbname, |
Oid | dboid, | ||
const char * | username, | ||
Oid | useroid, | ||
char * | out_dbname, | ||
bool | override_allow_connections | ||
) |
Definition at line 579 of file postinit.c.
References am_db_walsender, am_walsender, Assert, before_shmem_exit(), CAC_SUPERUSER, Port::canAcceptConnections, CheckDeadLockAlert(), CheckMyDatabase(), CommitTransactionCommand(), CreateAuxProcessResourceOwner(), CurrentResourceOwner, PGPROC::databaseId, dbname, DEADLOCK_TIMEOUT, DEBUG3, elog, EnablePortalManager(), ereport, errcode(), errcode_for_file_access(), errdetail(), errhint(), errmsg(), FATAL, GetDatabasePath(), GetDatabaseTuple(), GetDatabaseTupleByOid(), GetSessionUserId(), GETSTRUCT, GetTransactionSnapshot(), GetUserId(), has_rolreplication(), HaveNFreeProcs(), HeapTupleIsValid, IDLE_IN_TRANSACTION_SESSION_TIMEOUT, IDLE_SESSION_TIMEOUT, IdleInTransactionSessionTimeoutHandler(), IdleSessionTimeoutHandler(), InitBufferPoolBackend(), InitCatalogCache(), initialize_acl(), InitializeClientEncoding(), InitializeSearchPath(), InitializeSession(), InitializeSessionUserId(), InitializeSessionUserIdStandalone(), InitPlanCache(), InitProcessPhase2(), InvalidateCatalogSnapshot(), InvalidBackendId, IsAutoVacuumLauncherProcess(), IsAutoVacuumWorkerProcess(), IsBackgroundWorker, IsBinaryUpgrade, IsBootstrapProcessingMode, IsUnderPostmaster, LOCK_TIMEOUT, LockSharedObject(), LockTimeoutHandler(), MaxBackends, MyBackendId, MyDatabaseId, MyDatabaseTableSpace, MyProc, MyProcPort, NAMEDATALEN, NameStr, OidIsValid, on_shmem_exit(), PerformAuthentication(), pg_usleep(), pgstat_bestart(), pgstat_initialize(), PostAuthDelay, process_settings(), process_startup_options(), ProcSignalInit(), RecoveryInProgress(), RegisterTimeout(), RelationCacheInitialize(), RelationCacheInitializePhase2(), RelationCacheInitializePhase3(), ReleaseAuxProcessResources(), ReservedBackends, RowExclusiveLock, SetCurrentStatementStartTimestamp(), SetDatabasePath(), SharedInvalBackendInit(), ShutdownPostgres(), ShutdownXLOG(), StartTransactionCommand(), StartupXLOG(), STATEMENT_TIMEOUT, StatementTimeoutHandler(), strlcpy(), superuser(), ThereIsAtLeastOneRole(), ValidatePgVersion(), WARNING, XACT_READ_COMMITTED, and XactIsoLevel.
Referenced by AutoVacLauncherMain(), AutoVacWorkerMain(), BackgroundWorkerInitializeConnection(), BackgroundWorkerInitializeConnectionByOid(), BootstrapModeMain(), and PostgresMain().
void InitPostmasterChild | ( | void | ) |
Definition at line 93 of file miscinit.c.
References BlockSig, elog, FATAL, InitializeLatchSupport(), InitializeLatchWaitSet(), InitLatch(), InitProcessGlobals(), IsUnderPostmaster, LocalLatchData, MyLatch, on_exit_reset(), PG_SETMASK, PostmasterDeathSignalInit(), pqinitmask(), pqsignal(), set_stack_base(), SignalHandlerForCrashExit(), and SIGQUIT.
Referenced by BackendRun(), BackendStartup(), do_start_bgworker(), pgarch_start(), pgstat_start(), StartAutoVacWorker(), StartChildProcess(), and SysLogger_Start().
void InitStandaloneProcess | ( | const char * | argv0 | ) |
Definition at line 165 of file miscinit.c.
References Assert, BlockSig, elog, FATAL, find_my_exec(), get_pkglib_path(), InitializeLatchSupport(), InitializeLatchWaitSet(), InitLatch(), InitProcessGlobals(), IsPostmasterEnvironment, LocalLatchData, my_exec_path, MyLatch, PG_SETMASK, pkglib_path, and pqinitmask().
Referenced by AuxiliaryProcessMain(), and PostgresMain().
bool InLocalUserIdChange | ( | void | ) |
Definition at line 599 of file miscinit.c.
References SECURITY_LOCAL_USERID_CHANGE, and SecurityRestrictionContext.
Referenced by GetUserIdAndContext(), is_admin_of_role(), and set_config_option().
bool InNoForceRLSOperation | ( | void | ) |
Definition at line 617 of file miscinit.c.
References SECURITY_NOFORCE_RLS, and SecurityRestrictionContext.
Referenced by check_enable_rls().
bool InSecurityRestrictedOperation | ( | void | ) |
Definition at line 608 of file miscinit.c.
References SECURITY_RESTRICTED_OPERATION, and SecurityRestrictionContext.
Referenced by afterTriggerMarkEvents(), CheckRestrictedOperation(), DefineRelation(), is_admin_of_role(), PerformCursorOpen(), set_config_option(), and SetUserIdAndContext().
void pg_bindtextdomain | ( | const char * | domain | ) |
Definition at line 1681 of file miscinit.c.
References get_locale_path(), MAXPGPATH, and my_exec_path.
Referenced by _PG_init().
void pg_split_opts | ( | char ** | argv, |
int * | argcp, | ||
const char * | optstr | ||
) |
Definition at line 456 of file postinit.c.
References appendStringInfoChar(), StringInfoData::data, initStringInfo(), pfree(), pstrdup(), and resetStringInfo().
Referenced by process_startup_options().
void PreventCommandDuringRecovery | ( | const char * | cmdname | ) |
Definition at line 445 of file utility.c.
References ereport, errcode(), errmsg(), ERROR, and RecoveryInProgress().
Referenced by pg_current_xact_id(), pg_notify(), and standard_ProcessUtility().
void PreventCommandIfParallelMode | ( | const char * | cmdname | ) |
Definition at line 426 of file utility.c.
References ereport, errcode(), errmsg(), ERROR, and IsInParallelMode().
Referenced by do_setval(), ExecCheckXactReadOnly(), nextval_internal(), and standard_ProcessUtility().
void PreventCommandIfReadOnly | ( | const char * | cmdname | ) |
Definition at line 408 of file utility.c.
References ereport, errcode(), errmsg(), ERROR, and XactReadOnly.
Referenced by do_setval(), DoCopy(), ExecCheckXactReadOnly(), nextval_internal(), and standard_ProcessUtility().
void process_session_preload_libraries | ( | void | ) |
Definition at line 1670 of file miscinit.c.
References load_libraries(), local_preload_libraries_string, and session_preload_libraries_string.
Referenced by PostgresMain().
void process_shared_preload_libraries | ( | void | ) |
Definition at line 1657 of file miscinit.c.
References load_libraries(), process_shared_preload_libraries_in_progress, and shared_preload_libraries_string.
Referenced by BackendRun(), and PostmasterMain().
void ProcessInterrupts | ( | void | ) |
Definition at line 3065 of file postgres.c.
References Assert, BackgroundWorker::bgw_type, ClientAuthInProgress, ClientConnectionLost, CritSectionCount, DEBUG1, DestNone, DestRemote, DoingCommandRead, ereport, errcode(), errdetail_recovery_conflict(), errhint(), errmsg(), ERROR, FATAL, get_timeout_finish_time(), get_timeout_indicator(), HandleParallelMessages(), IdleInTransactionSessionTimeout, IdleInTransactionSessionTimeoutPending, IdleSessionTimeout, IdleSessionTimeoutPending, InterruptHoldoffCount, InterruptPending, IsAutoVacuumWorkerProcess(), IsBackgroundWorker, IsLogicalLauncher(), IsLogicalWorker(), LOCK_TIMEOUT, LockErrorCleanup(), MyBgworkerEntry, ParallelMessagePending, pgstat_report_recovery_conflict(), proc_exit(), ProcDiePending, ProcessProcSignalBarrier(), PROCSIG_RECOVERY_CONFLICT_DATABASE, ProcSignalBarrierPending, QueryCancelHoldoffCount, QueryCancelPending, RecoveryConflictPending, RecoveryConflictReason, RecoveryConflictRetryable, STATEMENT_TIMEOUT, and whereToSendOutput.
Referenced by die().
bool RecheckDataDirLockFile | ( | void | ) |
Definition at line 1456 of file miscinit.c.
References close, DIRECTORY_LOCK_FILE, ereport, errcode_for_file_access(), errmsg(), fd(), LOG, PG_BINARY, pgstat_report_wait_end(), pgstat_report_wait_start(), read, and WAIT_EVENT_LOCK_FILE_RECHECKDATADIR_READ.
Referenced by ServerLoop().
void restore_stack_base | ( | pg_stack_base_t | base | ) |
pg_stack_base_t set_stack_base | ( | void | ) |
Definition at line 3324 of file postgres.c.
References stack_base_ptr.
Referenced by InitPostmasterChild(), and PostmasterMain().
Definition at line 856 of file miscinit.c.
References OidIsValid, PGC_INTERNAL, PGC_S_OVERRIDE, SessionUserId, SessionUserIsSuperuser, SetConfigOption(), SetOuterUserId(), and SetRoleIsActive.
Referenced by assign_role(), and ParallelWorkerMain().
void SetDatabasePath | ( | const char * | path | ) |
Definition at line 289 of file miscinit.c.
References Assert, DatabasePath, MemoryContextStrdup(), and TopMemoryContext.
Referenced by InitPostgres().
void SetDataDir | ( | const char * | dir | ) |
Definition at line 395 of file miscinit.c.
References AssertArg, DataDir, free, and make_absolute_path().
Referenced by PostmasterMarkPIDForWorkerNotify(), and SelectConfigFiles().
Definition at line 810 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 637 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 588 of file miscinit.c.
References CurrentUserId, and SecurityRestrictionContext.
Referenced by AbortSubTransaction(), AbortTransaction(), CreateSchemaCommand(), do_analyze_rel(), ExecCreateTableAs(), ExecRefreshMatView(), execute_extension_script(), fmgr_security_definer(), index_build(), ParallelWorkerMain(), refresh_by_match_merge(), ri_PerformCheck(), ri_PlanCheck(), vacuum_rel(), and validate_index().
bool stack_is_too_deep | ( | void | ) |
Definition at line 3391 of file postgres.c.
References max_stack_depth_bytes, and stack_base_ptr.
Referenced by check_stack_depth(), and rstacktoodeep().
bool superuser | ( | void | ) |
Definition at line 46 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(), AlterPublicationOwner_internal(), AlterRole(), AlterRoleSet(), AlterSystemSetConfigFile(), AlterType(), AlterTypeOwner(), ATExecChangeOwner(), brin_metapage_info(), brin_page_items(), brin_page_type(), brin_revmap_data(), bt_metap(), bt_page_items_bytea(), bt_page_items_internal(), bt_page_stats_internal(), check_encoding_locale_matches(), check_permissions(), CreateAccessMethod(), CreateCast(), CreateEventTrigger(), CreateForeignDataWrapper(), CreateFunction(), CreateProceduralLanguage(), CreatePublication(), CreateRole(), CreateSubscription(), CreateTableSpace(), dblink_connstr_check(), dblink_security_check(), DefineAggregate(), DefineOpClass(), DefineOpFamily(), DefineTSParser(), DefineTSTemplate(), DefineType(), DelRoleMems(), DropRole(), dummy_object_relabel(), EnableDisableTrigger(), ExecSetVariableStmt(), ExecuteDoStmt(), fmgr_security_definer(), fsm_page_contents(), get_raw_page_internal(), gin_leafpage_items(), gin_metapage_info(), gin_page_opaque_info(), gist_page_items(), gist_page_items_bytea(), gist_page_opaque_info(), GUCArrayReset(), hash_bitmap_info(), hash_metapage_info(), hash_page_items(), hash_page_stats(), hash_page_type(), have_createdb_privilege(), heap_page_items(), heap_tuple_infomask_flags(), InitPostgres(), interpret_func_support(), main(), page_checksum_internal(), page_header(), pg_import_system_collations(), pg_logdir_ls(), pg_nextoid(), pg_read_file(), pg_relpages(), pg_relpagesbyid(), pg_rotate_logfile(), pg_signal_backend(), pgstat_get_backend_current_activity(), pgstatginindex(), pgstatindex(), pgstatindexbyid(), pgstattuple(), pgstattuple_approx(), pgstattuplebyid(), postgres_fdw_validator(), ProcedureCreate(), regress_setenv(), RenameRole(), requireSuperuser(), sepgsql_restorecon(), set_config_by_name(), SetPGVariable(), standard_ProcessUtility(), TerminateOtherDBBackends(), tuple_data_split(), validate_option_array_item(), and wait_pid().
Definition at line 56 of file superuser.c.
References AUTHOID, CacheRegisterSyscacheCallback(), GETSTRUCT, HeapTupleIsValid, IsUnderPostmaster, last_roleid, last_roleid_is_super, ObjectIdGetDatum, OidIsValid, ReleaseSysCache(), roleid_callback_registered, RoleidCallback(), rolsuper, and SearchSysCache1().
Referenced by AddRoleMems(), AlterEventTriggerOwner_internal(), AlterForeignDataWrapperOwner_internal(), AlterPublicationOwner_internal(), AlterSubscriptionOwner_internal(), check_conn_params(), check_object_ownership(), connect_pg_server(), DelRoleMems(), has_bypassrls_privilege(), 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_publication_ownercheck(), pg_signal_backend(), pg_statistics_object_ownercheck(), pg_subscription_ownercheck(), pg_tablespace_aclmask(), pg_tablespace_ownercheck(), pg_ts_config_ownercheck(), pg_ts_dict_ownercheck(), pg_type_aclmask(), pg_type_ownercheck(), select_best_grantor(), superuser(), and TerminateOtherDBBackends().
void SwitchBackToLocalLatch | ( | void | ) |
Definition at line 216 of file miscinit.c.
References Assert, FeBeWaitSet, LocalLatchData, ModifyWaitEvent(), MyLatch, MyProc, PGPROC::procLatch, SetLatch(), and WL_LATCH_SET.
Referenced by AuxiliaryProcKill(), and ProcKill().
void SwitchToSharedLatch | ( | void | ) |
Definition at line 197 of file miscinit.c.
References Assert, FeBeWaitSet, ModifyWaitEvent(), MyLatch, MyProc, PGPROC::procLatch, SetLatch(), and WL_LATCH_SET.
Referenced by InitAuxiliaryProcess(), and InitProcess().
void TouchSocketLockFiles | ( | void | ) |
Definition at line 1300 of file miscinit.c.
References DIRECTORY_LOCK_FILE, and lfirst.
Referenced by ServerLoop().
int trace_recovery | ( | int | trace_level | ) |
Definition at line 3602 of file elog.c.
References LOG, and trace_recovery_messages.
Referenced by KnownAssignedXidsRemove(), KnownAssignedXidsRemovePreceding(), LogCurrentRunningXacts(), ProcArrayApplyRecoveryInfo(), ProcessCommittedInvalidationMessages(), RecordKnownAssignedTransactionIds(), RecoveryRestartPoint(), StandbyAcquireAccessExclusiveLock(), StandbyReleaseAllLocks(), and StandbyReleaseLockList().
void ValidatePgVersion | ( | const char * | path | ) |
Definition at line 1528 of file miscinit.c.
References AllocateFile(), ereport, errcode(), errcode_for_file_access(), errdetail(), errhint(), errmsg(), FATAL, FreeFile(), MAXPGPATH, and snprintf.
Referenced by checkDataDir(), and InitPostgres().
PGDLLIMPORT bool allowSystemTableMods |
Definition at line 121 of file globals.c.
Referenced by ATAddForeignKeyConstraint(), ATExecAddIndexConstraint(), ATSimplePermissions(), CreateSchemaCommand(), CreateStatistics(), CreateTableSpace(), CreateTrigger(), DefineIndex(), DefineQueryRewrite(), DefineRelation(), perform_relmap_update(), RangeVarCallbackForAlterRelation(), RangeVarCallbackForDropRelation(), RangeVarCallbackForPolicy(), RangeVarCallbackForRenameRule(), RangeVarCallbackForRenameTrigger(), RangeVarCallbackOwnsRelation(), RemovePolicyById(), RemoveRewriteRuleById(), RemoveRoleFromObjectPolicy(), RemoveTriggerById(), renameatt_check(), RenameSchema(), RenameTableSpace(), and truncate_check_rel().
PGDLLIMPORT volatile sig_atomic_t ClientConnectionLost |
Definition at line 33 of file globals.c.
Referenced by internal_flush(), and ProcessInterrupts().
PGDLLIMPORT volatile uint32 CritSectionCount |
Definition at line 39 of file globals.c.
Referenced by errfinish(), errstart(), HeapTupleHeaderGetCmax(), log_newpage_buffer(), MemoryContextCreate(), proc_exit_prepare(), ProcessClientWriteInterrupt(), ProcessInterrupts(), XactLogAbortRecord(), XactLogCommitRecord(), XLogEnsureRecordSpace(), and XLogWrite().
PGDLLIMPORT int data_directory_mode |
Definition at line 69 of file globals.c.
Referenced by checkDataDir(), RetrieveDataDirCreatePerm(), and show_data_directory_mode().
char* DatabasePath |
Definition at line 94 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 63 of file globals.c.
Referenced by ChangeToDataDir(), checkControlFile(), checkDataDir(), convert_and_check_filename(), CreateDataDirLockFile(), CreateLockFile(), CreateTableSpace(), do_pg_start_backup(), GetSharedMemName(), main(), perform_base_backup(), pg_control_checkpoint(), pg_control_init(), pg_control_recovery(), pg_control_system(), PGReserveSemaphores(), PGSharedMemoryAttach(), PGSharedMemoryCreate(), PostmasterMarkPIDForWorkerNotify(), SelectConfigFiles(), SetDataDir(), StartupXLOG(), and UpdateControlFile().
PGDLLIMPORT int DateOrder |
Definition at line 117 of file globals.c.
Referenced by assign_datestyle(), check_datestyle(), DecodeNumber(), EncodeDateOnly(), and EncodeDateTime().
PGDLLIMPORT int DateStyle |
Definition at line 116 of file globals.c.
Referenced by 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 120 of file globals.c.
Referenced by copydir(), get_sync_bit(), pg_fdatasync(), pg_flush_data(), pg_fsync_no_writethrough(), pg_fsync_writethrough(), ProcessSyncRequests(), SyncDataDirectory(), and XLogFlush().
PGDLLIMPORT bool ExitOnAnyError |
Definition at line 114 of file globals.c.
Referenced by errstart(), and HandleCheckpointerInterrupts().
PGDLLIMPORT double hash_mem_multiplier |
Definition at line 123 of file globals.c.
Referenced by get_hash_mem().
PGDLLIMPORT volatile sig_atomic_t IdleInTransactionSessionTimeoutPending |
Definition at line 34 of file globals.c.
Referenced by IdleInTransactionSessionTimeoutHandler(), and ProcessInterrupts().
PGDLLIMPORT volatile sig_atomic_t IdleSessionTimeoutPending |
Definition at line 35 of file globals.c.
Referenced by IdleSessionTimeoutHandler(), and ProcessInterrupts().
bool IgnoreSystemIndexes |
Definition at line 79 of file miscinit.c.
Referenced by AuxiliaryProcessMain(), get_relation_info(), systable_beginscan(), and systable_beginscan_ordered().
PGDLLIMPORT volatile uint32 InterruptHoldoffCount |
Definition at line 37 of file globals.c.
Referenced by errfinish(), proc_exit_prepare(), ProcessClientWriteInterrupt(), ProcessInterrupts(), and SyncRepWaitForLSN().
PGDLLIMPORT volatile sig_atomic_t InterruptPending |
Definition at line 30 of file globals.c.
Referenced by die(), HandleParallelMessageInterrupt(), HandleProcSignalBarrierInterrupt(), IdleInTransactionSessionTimeoutHandler(), IdleSessionTimeoutHandler(), internal_flush(), proc_exit_prepare(), ProcessInterrupts(), rcancelrequested(), RecoveryConflictInterrupt(), ResetProcSignalBarrierBits(), StatementCancelHandler(), and vacuum_delay_point().
PGDLLIMPORT int IntervalStyle |
Definition at line 118 of file globals.c.
Referenced by DecodeInterval(), interval_out(), PGTYPESinterval_to_asc(), and set_transmission_modes().
PGDLLIMPORT bool IsBackgroundWorker |
Definition at line 112 of file globals.c.
Referenced by BackendRun(), InitAuxiliaryProcess(), InitializeSessionUserIdStandalone(), InitPostgres(), InitProcess(), ProcessInterrupts(), and StartBackgroundWorker().
PGDLLIMPORT bool IsBinaryUpgrade |
Definition at line 111 of file globals.c.
Referenced by AddEnumLabel(), AssignTypeArrayOid(), AssignTypeMultirangeArrayOid(), AssignTypeMultirangeOid(), create_toast_table(), CreateRole(), GetNewOidWithIndex(), GetNewRelFileNode(), heap_create_with_catalog(), index_create(), InitPostgres(), MultiXactSetNextMXact(), PostmasterMain(), PostmasterMarkPIDForWorkerNotify(), process_postgres_switches(), reaper(), ServerLoop(), TypeCreate(), and TypeShellMake().
PGDLLIMPORT bool IsPostmasterEnvironment |
Definition at line 109 of file globals.c.
Referenced by BackendRun(), GetNewObjectId(), HotStandbyActiveInReplay(), InitStandaloneProcess(), PostmasterMain(), RequestCheckpoint(), ShutdownXLOG(), slru_entry(), StartupXLOG(), and UnlinkLockFiles().
PGDLLIMPORT bool IsUnderPostmaster |
Definition at line 110 of file globals.c.
Referenced by _PG_init(), AdvanceNextFullTransactionIdPastXid(), AutoVacuumShmemInit(), AuxiliaryProcessMain(), BackgroundWorkerShmemInit(), bootstrap_signals(), BootstrapModeMain(), BTreeShmemInit(), CheckMyDatabase(), CheckRecoveryConsistency(), CommitTsShmemInit(), compute_parallel_vacuum_workers(), createdb(), CreateLWLocks(), CreateSharedMemoryAndSemaphores(), DebugFileOpen(), dsm_attach(), dsm_create(), dsm_postmaster_startup(), EventTriggerDDLCommandEnd(), EventTriggerDDLCommandStart(), EventTriggerSQLDrop(), EventTriggerTableRewrite(), ForwardSyncRequest(), GetNewMultiXactId(), GetNewTransactionId(), GetQuitSignalReason(), HandleStartupProcInterrupts(), init_ps_display(), InitCommunication(), InitializeLatchSupport(), InitializeLatchWaitSet(), InitializeSessionUserId(), InitializeSessionUserIdStandalone(), InitPostgres(), InitPostmasterChild(), InitPredicateLocks(), InitProcess(), InitSync(), LWLockAcquire(), MaintainLatestCompletedXidRecovery(), MultiXactShmemInit(), PGSemaphoreCreate(), PGSharedMemoryCreate(), PGSharedMemoryNoReAttach(), PGSharedMemoryReAttach(), pgss_shmem_startup(), plan_create_index_workers(), PostgresMain(), process_postgres_switches(), process_settings(), ProcKill(), readRecoverySignalFile(), RegisterBackgroundWorker(), RegisterDynamicBackgroundWorker(), ReplicationSlotAcquireInternal(), RequestAddinShmemSpace(), RequestNamedLWLockTranche(), SendPostmasterSignal(), SerialInit(), set_config_option(), set_config_sourcefile(), set_ps_display(), SetMultiXactIdLimit(), SetTransactionIdLimit(), ShmemInitStruct(), SimpleLruInit(), slru_entry(), standard_planner(), StartupXLOG(), superuser_arg(), SyncScanShmemInit(), TwoPhaseShmemInit(), verify_dictoptions(), WaitLatch(), WaitLatchOrSocket(), XLogArchiveNotify(), XLogRecGetFullXid(), and XLogWrite().
char* local_preload_libraries_string |
Definition at line 1593 of file miscinit.c.
Referenced by process_session_preload_libraries().
PGDLLIMPORT int maintenance_work_mem |
Definition at line 124 of file globals.c.
Referenced by _bt_leader_participate_as_worker(), _bt_parallel_build_main(), _bt_spools_heapscan(), _h_spoolinit(), begin_parallel_vacuum(), bt_check_every_level(), compute_max_dead_tuples(), ginBuildCallback(), ginInsertCleanup(), gistbuild(), gistInitBuffering(), hashbuild(), heapam_relation_copy_for_cluster(), parallel_vacuum_main(), plan_cluster_use_sort(), plan_create_index_workers(), RI_Initial_Check(), RI_PartitionRemove_Check(), and validate_index().
PGDLLIMPORT int max_parallel_maintenance_workers |
Definition at line 125 of file globals.c.
Referenced by compute_parallel_vacuum_workers(), and plan_create_index_workers().
PGDLLIMPORT int max_parallel_workers |
Definition at line 136 of file globals.c.
Referenced by RegisterDynamicBackgroundWorker().
PGDLLIMPORT int max_worker_processes |
Definition at line 135 of file globals.c.
Referenced by BackgroundWorkerShmemInit(), BackgroundWorkerShmemSize(), BackgroundWorkerStateChange(), check_autovacuum_max_workers(), check_max_wal_senders(), check_maxconnections(), CheckRequiredParameterValues(), ForgetBackgroundWorker(), ForgetUnstartedBackgroundWorkers(), GetBackgroundWorkerPid(), InitControlFile(), InitializeMaxBackends(), InitProcGlobal(), MaxLivePostmasterChildren(), RegisterBackgroundWorker(), ReportBackgroundWorkerExit(), ReportBackgroundWorkerPID(), TerminateBackgroundWorker(), and XLogReportParameters().
PGDLLIMPORT int MaxBackends |
Definition at line 137 of file globals.c.
Referenced by AsyncShmemInit(), AsyncShmemSize(), AuxiliaryProcessMain(), BTreeShmemInit(), BTreeShmemSize(), CreateSharedInvalidationState(), DeadLockCheckRecurse(), dsm_postmaster_startup(), ExpandConstraints(), FindLockCycleRecurse(), FindLockCycleRecurseMember(), GetBlockerStatusData(), GetLockConflicts(), GetLockStatusData(), GetSerializableTransactionSnapshotInt(), GetSingleProcBlockerStatusData(), InitDeadLockChecking(), InitializeMaxBackends(), InitPostgres(), InitPredicateLocks(), InitProcGlobal(), pg_safe_snapshot_blocking_pids(), pgstat_get_backend_current_activity(), pgstat_get_crashed_backend_activity(), pgstat_initialize(), PostmasterMarkPIDForWorkerNotify(), predicatelock_twophase_recover(), PredicateLockShmemSize(), ProcGlobalSemas(), ProcGlobalShmemSize(), SignalBackends(), SInvalShmemSize(), StreamServerPort(), TestConfiguration(), and TwoPhaseShmemInit().
PGDLLIMPORT int MaxConnections |
Definition at line 134 of file globals.c.
Referenced by check_autovacuum_max_workers(), check_max_wal_senders(), check_max_worker_processes(), CheckRequiredParameterValues(), InitControlFile(), InitializeMaxBackends(), InitProcGlobal(), MaxLivePostmasterChildren(), PostmasterMain(), and XLogReportParameters().
ProcessingMode Mode |
Definition at line 60 of file miscinit.c.
PGDLLIMPORT char my_exec_path[] |
Definition at line 73 of file globals.c.
Referenced by adjust_data_dir(), get_extension_control_directory(), get_extension_control_filename(), get_extension_script_directory(), get_tsearch_config_filename(), getInstallationPaths(), InitStandaloneProcess(), main(), ParseTzFile(), pg_bindtextdomain(), pg_config(), pg_TZDIR(), PostmasterMain(), PostmasterMarkPIDForWorkerNotify(), process_psqlrc(), and set_pglocale_pgservice().
AuxProcType MyAuxProcType |
Definition at line 70 of file bootstrap.c.
Referenced by AuxiliaryProcessMain(), and pgstat_initialize().
BackendType MyBackendType |
Definition at line 62 of file miscinit.c.
Referenced by AutoVacLauncherMain(), AutoVacWorkerMain(), AuxiliaryProcessMain(), init_ps_display(), log_line_prefix(), PgArchiverMain(), pgstat_bestart(), pgstat_report_stat(), PgstatCollectorMain(), ProcessStartupPacket(), send_message_to_server_log(), StartBackgroundWorker(), SysLoggerMain(), and write_csvlog().
int32 MyCancelKey |
Definition at line 45 of file globals.c.
Referenced by assign_backendlist_entry(), BackendStartup(), ParallelWorkerMain(), PostgresMain(), PostmasterMarkPIDForWorkerNotify(), and StartAutovacuumWorker().
PGDLLIMPORT Oid MyDatabaseId |
Definition at line 86 of file globals.c.
Referenced by AfterTriggerSetState(), AlterDatabase(), AlterObjectRename_internal(), AlterPublicationOwner_internal(), AlterSchemaOwner_internal(), AlterSubscription(), AlterSubscriptionOwner(), asyncQueueNotificationToEntry(), asyncQueueProcessPageEntries(), AutoVacuumRequestWork(), backend_read_statsfile(), CacheInvalidateCatalog(), CacheInvalidateHeapTuple(), CacheInvalidateRelcache(), CacheInvalidateRelcacheByTuple(), check_default_table_access_method(), check_default_tablespace(), check_temp_tablespaces(), check_TSCurrentConfig(), CheckLogicalDecodingRequirements(), CheckMyDatabase(), checkSharedDependencies(), checkTempNamespaceStatus(), classIdGetDbId(), ComputeXidHorizons(), CreateDecodingContext(), CreateInitDecodingContext(), CreatePublication(), CreateSchemaCommand(), CreateSubscription(), current_database(), database_to_xml_internal(), DeconstructQualifiedName(), do_analyze_rel(), do_autovacuum(), dropdb(), DropSubscription(), Exec_ListenPreCommit(), exec_object_restorecon(), exec_replication_command(), ExecuteTruncateGuts(), ExpandColumnRefStar(), ExportSnapshot(), extension_is_trusted(), get_collation_version_for_oid(), get_subscription_oid(), GetCurrentVirtualXIDs(), GetNewRelFileNode(), heap_vacuum_rel(), IdentifySystem(), ImportSnapshot(), InitializeParallelDSM(), InitPostgres(), InitTempTableNamespace(), libpqrcv_exec(), LocalExecuteInvalidationMessage(), LockDatabaseFrozenIds(), LockDatabaseObject(), LockGXact(), logical_heap_rewrite_flush_mappings(), logical_rewrite_log_mapping(), LogLogicalMessage(), LogStandbyInvalidations(), 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(), perform_work_item(), pg_namespace_aclmask(), pg_relation_filepath(), pgss_store(), pgstat_beshutdown_hook(), pgstat_bestart(), pgstat_drop_database(), pgstat_fetch_stat_funcentry(), pgstat_fetch_stat_tabentry(), pgstat_report_analyze(), pgstat_report_checksum_failure(), pgstat_report_deadlock(), pgstat_report_recovery_conflict(), pgstat_report_stat(), pgstat_report_tempfile(), pgstat_report_vacuum(), pgstat_reset_counters(), pgstat_reset_single_counter(), pgstat_send_connstats(), pgstat_send_funcstats(), pgstat_vacuum_stat(), PrepareToInvalidateCacheTuple(), PrepareTransaction(), ProcArrayInstallImportedXmin(), ProcArrayInstallRestoredXmin(), RangeVarGetAndCheckCreationNamespace(), RangeVarGetCreationNamespace(), RangeVarGetRelidExtended(), recheck_relation_needs_vacanalyze(), ReindexMultipleTables(), RelationInitLockInfo(), RelationInitPhysicalAddr(), RelationMapFinishBootstrap(), RenameDatabase(), RenameSchema(), ReplicationSlotCreate(), ScanPgRelation(), sepgsql_schema_post_create(), SetLocktagRelationOid(), shdepDropOwned(), shdepReassignOwned(), SignalBackends(), transformColumnRef(), UnlockDatabaseObject(), UpdateLogicalMappings(), vac_truncate_clog(), vac_update_datfrozenxid(), vacuum_is_relation_owner(), XactLogAbortRecord(), and XactLogCommitRecord().
PGDLLIMPORT Oid MyDatabaseTableSpace |
Definition at line 88 of file globals.c.
Referenced by AlterTableMoveAll(), ATExecSetTableSpace(), ATExecSetTableSpaceNoStorage(), ATPrepSetTableSpace(), calculate_tablespace_size(), check_temp_tablespaces(), DefineIndex(), DefineRelation(), get_tablespace(), GetDefaultTablespace(), GetNewRelFileNode(), heap_create(), InitPostgres(), LogStandbyInvalidations(), OpenTemporaryFile(), perform_relmap_update(), pg_relation_filepath(), pg_tablespace_location(), PrepareTempTablespaces(), RelationInitPhysicalAddr(), RelationMapFinishBootstrap(), RelidByRelfilenode(), SharedFileSetInit(), XactLogAbortRecord(), and XactLogCommitRecord().
PGDLLIMPORT struct Latch* MyLatch |
Definition at line 55 of file globals.c.
Referenced by ApplyLauncherMain(), autoprewarm_main(), AutoVacLauncherMain(), avl_sigusr2_handler(), BackgroundWriterMain(), be_tls_open_server(), CheckDeadLockAlert(), CheckpointerMain(), ConditionVariableTimedSleep(), copy_read_data(), die(), gather_readnext(), handle_sig_alarm(), HandleCatchupInterrupt(), HandleNotifyInterrupt(), HandleParallelMessageInterrupt(), IdleInTransactionSessionTimeoutHandler(), IdleSessionTimeoutHandler(), initialize_worker_spi(), InitializeLatchWaitSet(), InitPostmasterChild(), InitStandaloneProcess(), libpqrcv_connect(), libpqrcv_PQgetResult(), logicalrep_worker_stop(), LogicalRepApplyLoop(), mq_putmessage(), pg_promote(), pg_sleep(), pgarch_MainLoop(), pgarch_waken(), pgarch_waken_stop(), pgfdw_get_cleanup_result(), pgfdw_get_result(), PgstatCollectorMain(), pq_init(), ProcessClientReadInterrupt(), ProcessClientWriteInterrupt(), procsignal_sigusr1_handler(), ProcSleep(), ProcWaitForSignal(), read_or_wait(), RecoveryConflictInterrupt(), ReqCheckpointHandler(), secure_open_gssapi(), secure_read(), secure_write(), shm_mq_receive_bytes(), shm_mq_send_bytes(), shm_mq_wait_internal(), SignalHandlerForConfigReload(), SignalHandlerForShutdownRequest(), sigUsr1Handler(), StatementCancelHandler(), SwitchBackToLocalLatch(), SwitchToSharedLatch(), SyncRepWaitForLSN(), SysLoggerMain(), test_shm_mq_pipelined(), throttle(), wait_for_relation_state_change(), wait_for_worker_state_change(), wait_for_workers_to_become_ready(), WaitForBackgroundWorkerShutdown(), WaitForBackgroundWorkerStartup(), WaitForParallelWorkersToAttach(), WaitForParallelWorkersToFinish(), WaitForProcSignalBarrier(), WaitForReplicationWorkerAttach(), WalRcvWaitForStartPosition(), WalReceiverMain(), WalSndLastCycleHandler(), WalSndLoop(), WalSndWaitForWal(), WalSndWriteData(), WalWriterMain(), and write_syslogger_file().
int MyPMChildSlot |
Definition at line 46 of file globals.c.
Referenced by assign_backendlist_entry(), BackendStartup(), MarkPostmasterChildActive(), MarkPostmasterChildInactive(), MarkPostmasterChildWalSender(), PostmasterMarkPIDForWorkerNotify(), and StartAutovacuumWorker().
PGDLLIMPORT int MyProcPid |
Definition at line 41 of file globals.c.
Referenced by AddWaitEventToSet(), ApplyLauncherMain(), apw_detach_shmem(), apw_dump_now(), apw_load_buffers(), apw_start_database_worker(), apw_start_leader_worker(), Async_Listen(), Async_Unlisten(), Async_UnlistenAll(), asyncQueueNotificationToEntry(), asyncQueueReadAllNotifications(), autoprewarm_main(), AutoVacLauncherMain(), BackendRun(), CheckpointerMain(), CleanupProcSignalState(), DisownLatch(), drandom(), Exec_ListenPreCommit(), Exec_UnlistenAllCommit(), Exec_UnlistenCommit(), ExportSnapshot(), GetSerializableTransactionSnapshotInt(), HandleWalSndInitStopping(), InitAuxiliaryProcess(), InitializeLatchSupport(), InitializeParallelDSM(), InitLatch(), InitPostmasterDeathWatchHandle(), InitProcess(), InitProcessGlobals(), InitWalSenderSlot(), IsLogicalLauncher(), LaunchParallelWorkers(), llvm_compile_module(), LockBufferForCleanup(), LockTimeoutHandler(), log_line_prefix(), logicalrep_worker_launch(), ModifyWaitEvent(), OpenTemporaryFileInTablespace(), OwnLatch(), ParallelWorkerMain(), pg_backend_pid(), pgstat_bestart(), PostgresMain(), PostmasterMain(), ProcSignalInit(), ProcSleep(), PublishStartupProcessInformation(), ReplicationOriginExitCleanup(), ReplicationSlotAcquireInternal(), ReplicationSlotCleanup(), ReplicationSlotCreate(), ReplicationSlotsDropDBSlots(), replorigin_session_setup(), ResetLatch(), ServerLoop(), set_ps_display(), SetLatch(), setup_background_workers(), SharedFileSetInit(), SharedInvalBackendInit(), SignalBackends(), SnapBuildSerialize(), StatementTimeoutHandler(), UnlockBuffers(), WalRcvDie(), WalReceiverMain(), worker_spi_launch(), write_csvlog(), write_pipe_chunks(), and write_relcache_init_file().
PGDLLIMPORT struct Port* MyProcPort |
Definition at line 44 of file globals.c.
Referenced by assign_tcp_keepalives_count(), assign_tcp_keepalives_idle(), assign_tcp_keepalives_interval(), assign_tcp_user_timeout(), BackendInitialize(), inet_client_addr(), inet_client_port(), inet_server_addr(), inet_server_port(), InitPostgres(), internal_flush(), log_disconnections(), log_line_prefix(), pgstat_bestart(), pq_getbyte_if_available(), pq_init(), pq_recvbuf(), show_tcp_keepalives_count(), show_tcp_keepalives_idle(), show_tcp_keepalives_interval(), show_tcp_user_timeout(), socket_close(), socket_set_nonblocking(), ssl_cipher(), ssl_client_cert_present(), ssl_client_dn(), ssl_client_dn_field(), ssl_client_serial(), ssl_extension_info(), ssl_is_used(), ssl_issuer_dn(), ssl_issuer_field(), ssl_version(), WalSndLoop(), WalSndWaitForWal(), WalSndWriteData(), and write_csvlog().
PGDLLIMPORT pg_time_t MyStartTime |
Definition at line 42 of file globals.c.
Referenced by CreateLockFile(), InitProcessGlobals(), log_line_prefix(), setup_formatted_start_time(), SysLoggerMain(), and write_csvlog().
PGDLLIMPORT TimestampTz MyStartTimestamp |
Definition at line 43 of file globals.c.
Referenced by InitProcessGlobals(), log_disconnections(), pgstat_bestart(), and pgstat_send_connstats().
PGDLLIMPORT int NBuffers |
char OutputFileName[] |
Definition at line 71 of file globals.c.
Referenced by AuxiliaryProcessMain(), DebugFileOpen(), and process_postgres_switches().
char pkglib_path[] |
Definition at line 74 of file globals.c.
Referenced by add_module_to_inline_search_path(), getInstallationPaths(), InitStandaloneProcess(), llvm_create_types(), load_module(), PostmasterMarkPIDForWorkerNotify(), provider_init(), and substitute_libpath_macro().
PGDLLIMPORT pid_t PostmasterPid |
Definition at line 96 of file globals.c.
Referenced by InitPostmasterDeathWatchHandle(), log_line_prefix(), ModifyWaitEvent(), pg_promote(), pg_reload_conf(), pg_spinlock_barrier(), PostmasterMain(), PostmasterMarkPIDForWorkerNotify(), SendPostmasterSignal(), and write_csvlog().
PGDLLIMPORT volatile sig_atomic_t ProcDiePending |
Definition at line 32 of file globals.c.
Referenced by die(), dsm_impl_op(), proc_exit_prepare(), ProcessClientReadInterrupt(), ProcessClientWriteInterrupt(), ProcessInterrupts(), rcancelrequested(), RecoveryConflictInterrupt(), and SyncRepWaitForLSN().
PGDLLIMPORT bool process_shared_preload_libraries_in_progress |
Definition at line 1596 of file miscinit.c.
Referenced by _PG_init(), apw_start_leader_worker(), init_custom_variable(), process_shared_preload_libraries(), and RegisterBackgroundWorker().
PGDLLIMPORT volatile sig_atomic_t ProcSignalBarrierPending |
Definition at line 36 of file globals.c.
Referenced by BufferSync(), CheckpointWriteDelay(), HandleAutoVacLauncherInterrupts(), HandleCheckpointerInterrupts(), HandleMainLoopInterrupts(), HandleProcSignalBarrierInterrupt(), HandleStartupProcInterrupts(), ProcessInterrupts(), ProcessProcSignalBarrier(), and ResetProcSignalBarrierBits().
PGDLLIMPORT volatile uint32 QueryCancelHoldoffCount |
Definition at line 38 of file globals.c.
Referenced by errfinish(), and ProcessInterrupts().
PGDLLIMPORT volatile sig_atomic_t QueryCancelPending |
Definition at line 31 of file globals.c.
Referenced by AutoVacLauncherMain(), do_autovacuum(), dsm_impl_op(), perform_work_item(), PostgresMain(), proc_exit_prepare(), ProcessInterrupts(), rcancelrequested(), RecoveryConflictInterrupt(), StatementCancelHandler(), and SyncRepWaitForLSN().
char* session_preload_libraries_string |
Definition at line 1591 of file miscinit.c.
Referenced by process_session_preload_libraries().
char* shared_preload_libraries_string |
Definition at line 1592 of file miscinit.c.
Referenced by process_shared_preload_libraries().
int trace_recovery_messages |
Definition at line 549 of file guc.c.
Referenced by StartupXLOG(), and trace_recovery().
double vacuum_cleanup_index_scale_factor |
Definition at line 152 of file globals.c.
Referenced by _bt_vacuum_needs_cleanup(), and btoptions().
bool VacuumCostActive |
Definition at line 150 of file globals.c.
Referenced by MarkBufferDirty(), MarkBufferDirtyHint(), parallel_vacuum_main(), ReadBuffer_common(), vacuum(), and vacuum_delay_point().
int VacuumCostBalance |
Definition at line 149 of file globals.c.
Referenced by compute_parallel_delay(), lazy_parallel_vacuum_indexes(), MarkBufferDirty(), MarkBufferDirtyHint(), parallel_vacuum_main(), ReadBuffer_common(), vacuum(), and vacuum_delay_point().
double VacuumCostDelay |
Definition at line 143 of file globals.c.
Referenced by autovac_balance_cost(), AutoVacuumUpdateDelay(), compute_parallel_delay(), do_autovacuum(), parallel_vacuum_main(), table_recheck_autovac(), vacuum(), and vacuum_delay_point().
int VacuumCostLimit |
Definition at line 142 of file globals.c.
Referenced by autovac_balance_cost(), AutoVacuumUpdateDelay(), compute_parallel_delay(), do_autovacuum(), table_recheck_autovac(), and vacuum_delay_point().
int VacuumCostPageDirty |
Definition at line 141 of file globals.c.
Referenced by MarkBufferDirty(), and MarkBufferDirtyHint().
int VacuumCostPageHit |
Definition at line 139 of file globals.c.
Referenced by ReadBuffer_common().
int VacuumCostPageMiss |
Definition at line 140 of file globals.c.
Referenced by ReadBuffer_common().
int64 VacuumPageDirty |
Definition at line 147 of file globals.c.
Referenced by heap_vacuum_rel(), MarkBufferDirty(), MarkBufferDirtyHint(), parallel_vacuum_main(), and vacuum().
int64 VacuumPageHit |
Definition at line 145 of file globals.c.
Referenced by heap_vacuum_rel(), parallel_vacuum_main(), ReadBuffer_common(), and vacuum().
int64 VacuumPageMiss |
Definition at line 146 of file globals.c.
Referenced by heap_vacuum_rel(), parallel_vacuum_main(), ReadBuffer_common(), and vacuum().
PGDLLIMPORT int work_mem |
Definition at line 122 of file globals.c.
Referenced by _bt_parallel_scan_and_sort(), _bt_spools_heapscan(), adjust_foreign_grouping_path_cost(), begin_partition(), brin_page_items(), choose_hashed_setop(), collectMatchBitmap(), compute_bitmap_pages(), connectby(), cost_append(), cost_material(), cost_rescan(), create_gather_merge_path(), create_groupingsets_path(), create_incremental_sort_path(), create_merge_append_path(), create_sort_path(), create_unique_path(), CreateWorkExprContext(), crosstab(), dblink_get_notify(), deflist_to_tuplestore(), each_worker(), each_worker_jsonb(), elements_worker(), elements_worker_jsonb(), exec_init_tuple_store(), ExecIncrementalSort(), ExecInitCteScan(), ExecInitRecursiveUnion(), ExecMakeTableFunctionResult(), ExecMaterial(), ExecRecursiveUnion(), ExecSort(), final_cost_mergejoin(), fmgr_sql(), get_crosstab_tuplestore(), get_hash_mem(), GetCurrentFDWTuplestore(), ginInsertCleanup(), gist_page_items(), gist_page_items_bytea(), initial_cost_mergejoin(), initialize_aggregate(), initialize_phase(), label_sort_with_costsize(), libpqrcv_processTuples(), MakeTransitionCaptureState(), materializeResult(), MultiExecBitmapIndexScan(), MultiExecBitmapOr(), ordered_set_startup(), pg_available_extension_versions(), pg_available_extensions(), pg_config(), pg_cursor(), pg_event_trigger_ddl_commands(), pg_event_trigger_dropped_objects(), pg_extension_update_paths(), pg_get_backend_memory_contexts(), pg_get_replication_slots(), pg_get_shmem_allocations(), pg_hba_file_rules(), pg_logdir_ls_internal(), pg_logical_slot_get_changes_guts(), pg_ls_dir(), pg_ls_dir_files(), pg_prepared_statement(), pg_show_replication_origin_status(), pg_stat_get_activity(), pg_stat_get_progress_info(), pg_stat_get_replication_slots(), pg_stat_get_slru(), pg_stat_get_subscription(), pg_stat_get_wal_senders(), pg_stat_statements_internal(), pg_stop_backup_v2(), pg_tablespace_databases(), pg_timezone_names(), pgrowlocks(), plperl_return_next_internal(), pltcl_init_tuple_store(), populate_recordset_worker(), PortalCreateHoldStore(), postgres_fdw_get_connections(), show_all_file_settings(), storeRow(), switchToPresortedPrefixMode(), text_to_table(), tfuncFetchRows(), verify_heapam(), and xpath_table().