#include "postgres.h"
#include "libpq/pqcomm.h"
#include "miscadmin.h"
#include "storage/backendid.h"
Go to the source code of this file.
bool allowSystemTableMods = false |
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 = false |
Definition at line 31 of file globals.c.
Referenced by internal_flush(), and ProcessInterrupts().
volatile uint32 CritSectionCount = 0 |
int CTimeZone = 0 |
Definition at line 97 of file globals.c.
Referenced by abstime2tm(), assign_timezone(), check_timezone(), DetermineTimeZoneOffset(), show_timezone(), and timestamp2tm().
char* DatabasePath = NULL |
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().
int DateOrder = DATEORDER_MDY |
Definition at line 94 of file globals.c.
Referenced by assign_datestyle(), check_datestyle(), DecodeNumber(), EncodeDateOnly(), and EncodeDateTime().
int DateStyle = USE_ISO_DATES |
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 = true |
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 = false |
Definition at line 91 of file globals.c.
Referenced by BackgroundWriterMain(), CheckpointerMain(), and errstart().
Definition at line 26 of file globals.c.
Referenced by BeginReportingGUCOptions(), HandleFunctionRequest(), NotifyMyFrontEnd(), NullCommand(), PostgresMain(), pq_putmessage(), printtup_startup(), process_postgres_switches(), ProcessStartupPacket(), ReadyForQuery(), ReceiveCopyBegin(), send_message_to_frontend(), SendCopyBegin(), SendFunctionResult(), SendRowDescriptionMessage(), SetRemoteDestReceiverParams(), and SocketBackend().
int GinFuzzySearchLimit = 0 |
Definition at line 127 of file globals.c.
Referenced by startScan().
Definition at line 96 of file globals.c.
Referenced by abstime2tm(), assign_timezone(), check_timezone(), DetermineTimeZoneOffset(), show_timezone(), and timestamp2tm().
volatile bool ImmediateInterruptOK = false |
volatile uint32 InterruptHoldoffCount = 0 |
volatile bool InterruptPending = false |
int IntervalStyle = INTSTYLE_POSTGRES |
Definition at line 95 of file globals.c.
Referenced by DecodeInterval(), interval_out(), PGTYPESinterval_to_asc(), reltimeout(), and set_transmission_modes().
bool IsBackgroundWorker = false |
Definition at line 89 of file globals.c.
Referenced by do_start_bgworker(), InitializeSessionUserIdStandalone(), InitPostgres(), InitProcess(), and ProcKill().
bool IsBinaryUpgrade = false |
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 = false |
Definition at line 86 of file globals.c.
Referenced by errstart(), GetNewObjectId(), pg_re_throw(), PostmasterMain(), and RequestCheckpoint().
bool IsUnderPostmaster = false |
int maintenance_work_mem = 16384 |
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 = 0 |
int MaxConnections = 90 |
Definition at line 111 of file globals.c.
Referenced by BootStrapXLOG(), check_autovacuum_max_workers(), CheckRequiredParameterValues(), InitializeMaxBackends(), InitProcGlobal(), MaxLivePostmasterChildren(), PostmasterMain(), RegisterBackgroundWorker(), and XLogReportParameters().
char my_exec_path[MAXPGPATH] |
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().
BackendId MyBackendId = InvalidBackendId |
Definition at line 61 of file globals.c.
Referenced by asyncQueueReadAllNotifications(), asyncQueueUnregister(), AtEOXact_MultiXact(), AtPrepare_MultiXact(), CleanupInvalidationState(), do_autovacuum(), DropRelFileNodeAllLocalBuffers(), DropRelFileNodeBuffers(), DropRelFileNodeLocalBuffers(), DropRelFileNodesAllBuffers(), Exec_ListenPreCommit(), GetNewMultiXactId(), GetNewRelFileNode(), InitPostgres(), InitRecoveryTransactionEnvironment(), InitTempTableNamespace(), local_buffer_write_error_callback(), LocalBufferAlloc(), MultiXactIdSetOldestMember(), MultiXactIdSetOldestVisible(), pg_relation_filepath(), pgstat_initialize(), PostPrepare_MultiXact(), PrintBufferLeakWarning(), RelationBuildDesc(), RelationBuildLocalRelation(), RelationCreateStorage(), SharedInvalBackendInit(), SIGetDataEntries(), StartTransaction(), and VirtualXactLockTableCleanup().
long MyCancelKey |
Definition at line 39 of file globals.c.
Referenced by assign_backendlist_entry(), BackendStartup(), PostgresMain(), and StartAutovacuumWorker().
Oid MyDatabaseId = InvalidOid |
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_send_funcstats(), 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().
Oid MyDatabaseTableSpace = InvalidOid |
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().
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().
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().
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().
char OutputFileName[MAXPGPATH] |
Definition at line 50 of file globals.c.
Referenced by AuxiliaryProcessMain(), DebugFileOpen(), and process_postgres_switches().
char pkglib_path[MAXPGPATH] |
Definition at line 53 of file globals.c.
Referenced by getInstallationPaths(), PostgresMain(), and substitute_libpath_macro().
pid_t PostmasterPid = 0 |
Definition at line 73 of file globals.c.
Referenced by InitPostmasterDeathWatchHandle(), pg_reload_conf(), PostmasterMain(), and SendPostmasterSignal().
volatile bool ProcDiePending = false |
volatile bool QueryCancelPending = false |
bool VacuumCostActive = false |
Definition at line 125 of file globals.c.
Referenced by MarkBufferDirty(), MarkBufferDirtyHint(), ReadBuffer_common(), vacuum(), and vacuum_delay_point().
int VacuumCostBalance = 0 |
Definition at line 124 of file globals.c.
Referenced by MarkBufferDirty(), MarkBufferDirtyHint(), ReadBuffer_common(), vacuum(), and vacuum_delay_point().
int VacuumCostDelay = 0 |
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 = 200 |
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 = 20 |
Definition at line 116 of file globals.c.
Referenced by MarkBufferDirty(), and MarkBufferDirtyHint().
int VacuumCostPageHit = 1 |
Definition at line 114 of file globals.c.
Referenced by ReadBuffer_common().
int VacuumCostPageMiss = 10 |
Definition at line 115 of file globals.c.
Referenced by ReadBuffer_common().
int VacuumPageDirty = 0 |
Definition at line 122 of file globals.c.
Referenced by lazy_vacuum_rel(), MarkBufferDirty(), MarkBufferDirtyHint(), and vacuum().
int VacuumPageHit = 0 |
Definition at line 120 of file globals.c.
Referenced by lazy_vacuum_rel(), ReadBuffer_common(), and vacuum().
int VacuumPageMiss = 0 |
Definition at line 121 of file globals.c.
Referenced by lazy_vacuum_rel(), ReadBuffer_common(), and vacuum().
int work_mem = 1024 |
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().