PostgreSQL Source Code
git master
|
#include "storage/block.h"
Go to the source code of this file.
Enumerations | |
enum | AutoVacuumWorkItemType { AVW_BRINSummarizeRange } |
Functions | |
bool | AutoVacuumingActive (void) |
void | autovac_init (void) |
void | AutoVacWorkerFailed (void) |
void | AutoVacLauncherMain (char *startup_data, size_t startup_data_len) pg_attribute_noreturn() |
void | AutoVacWorkerMain (char *startup_data, size_t startup_data_len) pg_attribute_noreturn() |
bool | AutoVacuumRequestWork (AutoVacuumWorkItemType type, Oid relationId, BlockNumber blkno) |
Size | AutoVacuumShmemSize (void) |
void | AutoVacuumShmemInit (void) |
void autovac_init | ( | void | ) |
Definition at line 3254 of file autovacuum.c.
References autovacuum_start_daemon, ereport, errhint(), errmsg(), pgstat_track_counts, and WARNING.
Referenced by PostmasterMain().
void AutoVacLauncherMain | ( | char * | startup_data, |
size_t | startup_data_len | ||
) |
bool AutoVacuumingActive | ( | void | ) |
Definition at line 3200 of file autovacuum.c.
References autovacuum_start_daemon, and pgstat_track_counts.
Referenced by HandleAutoVacLauncherInterrupts(), LaunchMissingBackgroundProcesses(), and relation_needs_vacanalyze().
bool AutoVacuumRequestWork | ( | AutoVacuumWorkItemType | type, |
Oid | relationId, | ||
BlockNumber | blkno | ||
) |
Definition at line 3212 of file autovacuum.c.
References AutoVacuumShmem, AutoVacuumShmemStruct::av_workItems, AutoVacuumWorkItem::avw_active, AutoVacuumWorkItem::avw_blockNumber, AutoVacuumWorkItem::avw_database, AutoVacuumWorkItem::avw_relation, AutoVacuumWorkItem::avw_type, AutoVacuumWorkItem::avw_used, i, LW_EXCLUSIVE, LWLockAcquire(), LWLockRelease(), MyDatabaseId, NUM_WORKITEMS, and type.
Referenced by brininsert().
void AutoVacuumShmemInit | ( | void | ) |
Definition at line 3286 of file autovacuum.c.
References Assert, autovacuum_max_workers, AutoVacuumShmem, AutoVacuumShmemSize(), AutoVacuumShmemStruct::av_freeWorkers, AutoVacuumShmemStruct::av_launcherpid, AutoVacuumShmemStruct::av_nworkersForBalance, AutoVacuumShmemStruct::av_runningWorkers, AutoVacuumShmemStruct::av_startingWorker, AutoVacuumShmemStruct::av_workItems, dlist_init(), dlist_push_head(), i, IsUnderPostmaster, MAXALIGN, NUM_WORKITEMS, pg_atomic_init_flag(), pg_atomic_init_u32(), ShmemInitStruct(), and WorkerInfoData::wi_links.
Referenced by CreateOrAttachShmemStructs().
Size AutoVacuumShmemSize | ( | void | ) |
Definition at line 3267 of file autovacuum.c.
References add_size(), autovacuum_max_workers, MAXALIGN, mul_size(), and size.
Referenced by AutoVacuumShmemInit(), and CalculateShmemSize().
void AutoVacWorkerFailed | ( | void | ) |
Definition at line 1339 of file autovacuum.c.
References AutoVacForkFailed, AutoVacuumShmem, and AutoVacuumShmemStruct::av_signal.
Referenced by StartAutovacuumWorker().
void AutoVacWorkerMain | ( | char * | startup_data, |
size_t | startup_data_len | ||
) |
Definition at line 1361 of file autovacuum.c.
References Assert, AutoVacuumShmem, AutoVacuumShmemStruct::av_launcherpid, AutoVacuumShmemStruct::av_runningWorkers, AutoVacuumShmemStruct::av_startingWorker, B_AUTOVAC_WORKER, BaseInit(), dbname, DEBUG1, die, dlist_push_head(), do_autovacuum(), elog, EmitErrorReport(), ereport, errmsg_internal(), error_context_stack, FloatExceptionHandler(), FreeWorkerInfo(), GetProcessingMode, HOLD_INTERRUPTS, init_ps_display(), InitializeTimeouts(), InitPostgres(), InitProcess(), InitProcessing, InvalidOid, kill, LW_EXCLUSIVE, LWLockAcquire(), LWLockRelease(), MemoryContextDelete(), MyBackendType, MyProc, MyWorkerInfo, NAMEDATALEN, NormalProcessing, OidIsValid, on_shmem_exit(), PG_exception_stack, pg_usleep(), PGC_S_OVERRIDE, PGC_SUSET, pgstat_report_autovac(), PostAuthDelay, PostmasterContext, pqsignal(), proc_exit(), procsignal_sigusr1_handler(), ReadNextMultiXactId(), ReadNextTransactionId(), recentMulti, recentXid, set_ps_display(), SetConfigOption(), SetProcessingMode, SIG_DFL, SIG_IGN, SIGCHLD, SIGHUP, SignalHandlerForConfigReload(), SIGPIPE, SIGUSR1, SIGUSR2, StatementCancelHandler(), synchronous_commit, SYNCHRONOUS_COMMIT_LOCAL_FLUSH, UnBlockSig, WARNING, WorkerInfoData::wi_dboid, WorkerInfoData::wi_links, and WorkerInfoData::wi_proc.
|
extern |
Definition at line 126 of file autovacuum.c.
Referenced by relation_needs_vacanalyze().
|
extern |
Definition at line 125 of file autovacuum.c.
Referenced by relation_needs_vacanalyze().
|
extern |
Definition at line 127 of file autovacuum.c.
Referenced by do_start_worker(), relation_needs_vacanalyze(), SetTransactionIdLimit(), vacuum_get_cutoffs(), and vacuum_xid_failsafe_check().
|
extern |
Definition at line 118 of file autovacuum.c.
Referenced by AutoVacuumShmemInit(), AutoVacuumShmemSize(), InitializeMaxBackends(), InitProcGlobal(), and MaxLivePostmasterChildren().
|
extern |
Definition at line 128 of file autovacuum.c.
Referenced by MultiXactMemberFreezeThreshold(), SetMultiXactIdLimit(), and vacuum_xid_failsafe_check().
|
extern |
Definition at line 120 of file autovacuum.c.
Referenced by do_start_worker(), launch_worker(), launcher_determine_sleep(), and rebuild_database_list().
|
extern |
Definition at line 117 of file autovacuum.c.
Referenced by autovac_init(), and AutoVacuumingActive().
|
extern |
Definition at line 130 of file autovacuum.c.
Referenced by VacuumUpdateCosts().
|
extern |
Definition at line 131 of file autovacuum.c.
Referenced by AutoVacuumUpdateCostLimit().
|
extern |
Definition at line 124 of file autovacuum.c.
Referenced by relation_needs_vacanalyze().
|
extern |
Definition at line 123 of file autovacuum.c.
Referenced by relation_needs_vacanalyze().
|
extern |
Definition at line 122 of file autovacuum.c.
Referenced by relation_needs_vacanalyze().
|
extern |
Definition at line 121 of file autovacuum.c.
Referenced by relation_needs_vacanalyze().
|
extern |
Definition at line 119 of file autovacuum.c.
Referenced by dead_items_alloc(), and ginInsertCleanup().
|
extern |
Definition at line 314 of file autovacuum.c.
Referenced by FreeWorkerInfo(), and ProcKill().
|
extern |
Definition at line 133 of file autovacuum.c.
Referenced by table_recheck_autovac().