PostgreSQL Source Code  git master
autovacuum.h File Reference
#include "storage/block.h"
Include dependency graph for autovacuum.h:
This graph shows which files directly or indirectly include this file:

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)
 

Variables

PGDLLIMPORT bool autovacuum_start_daemon
 
PGDLLIMPORT int autovacuum_max_workers
 
PGDLLIMPORT int autovacuum_work_mem
 
PGDLLIMPORT int autovacuum_naptime
 
PGDLLIMPORT int autovacuum_vac_thresh
 
PGDLLIMPORT double autovacuum_vac_scale
 
PGDLLIMPORT int autovacuum_vac_ins_thresh
 
PGDLLIMPORT double autovacuum_vac_ins_scale
 
PGDLLIMPORT int autovacuum_anl_thresh
 
PGDLLIMPORT double autovacuum_anl_scale
 
PGDLLIMPORT int autovacuum_freeze_max_age
 
PGDLLIMPORT int autovacuum_multixact_freeze_max_age
 
PGDLLIMPORT double autovacuum_vac_cost_delay
 
PGDLLIMPORT int autovacuum_vac_cost_limit
 
PGDLLIMPORT int AutovacuumLauncherPid
 
PGDLLIMPORT int Log_autovacuum_min_duration
 

Enumeration Type Documentation

◆ AutoVacuumWorkItemType

Enumerator
AVW_BRINSummarizeRange 

Definition at line 23 of file autovacuum.h.

24 {
AutoVacuumWorkItemType
Definition: autovacuum.h:24
@ AVW_BRINSummarizeRange
Definition: autovacuum.h:25

Function Documentation

◆ autovac_init()

void autovac_init ( void  )

Definition at line 3243 of file autovacuum.c.

3244 {
3246  ereport(WARNING,
3247  (errmsg("autovacuum not started because of misconfiguration"),
3248  errhint("Enable the \"track_counts\" option.")));
3249 }
bool autovacuum_start_daemon
Definition: autovacuum.c:116
int errhint(const char *fmt,...)
Definition: elog.c:1319
int errmsg(const char *fmt,...)
Definition: elog.c:1072
#define WARNING
Definition: elog.h:36
#define ereport(elevel,...)
Definition: elog.h:149
bool pgstat_track_counts
Definition: pgstat.c:184

References autovacuum_start_daemon, ereport, errhint(), errmsg(), pgstat_track_counts, and WARNING.

Referenced by PostmasterMain().

◆ AutoVacLauncherMain()

void AutoVacLauncherMain ( char *  startup_data,
size_t  startup_data_len 
)

◆ AutoVacuumingActive()

bool AutoVacuumingActive ( void  )

Definition at line 3189 of file autovacuum.c.

3190 {
3192  return false;
3193  return true;
3194 }

References autovacuum_start_daemon, and pgstat_track_counts.

Referenced by HandleAutoVacLauncherInterrupts(), process_pm_child_exit(), relation_needs_vacanalyze(), and ServerLoop().

◆ AutoVacuumRequestWork()

bool AutoVacuumRequestWork ( AutoVacuumWorkItemType  type,
Oid  relationId,
BlockNumber  blkno 
)

Definition at line 3201 of file autovacuum.c.

3203 {
3204  int i;
3205  bool result = false;
3206 
3207  LWLockAcquire(AutovacuumLock, LW_EXCLUSIVE);
3208 
3209  /*
3210  * Locate an unused work item and fill it with the given data.
3211  */
3212  for (i = 0; i < NUM_WORKITEMS; i++)
3213  {
3215 
3216  if (workitem->avw_used)
3217  continue;
3218 
3219  workitem->avw_used = true;
3220  workitem->avw_active = false;
3221  workitem->avw_type = type;
3222  workitem->avw_database = MyDatabaseId;
3223  workitem->avw_relation = relationId;
3224  workitem->avw_blockNumber = blkno;
3225  result = true;
3226 
3227  /* done */
3228  break;
3229  }
3230 
3231  LWLockRelease(AutovacuumLock);
3232 
3233  return result;
3234 }
#define NUM_WORKITEMS
Definition: autovacuum.c:268
static AutoVacuumShmemStruct * AutoVacuumShmem
Definition: autovacuum.c:299
Oid MyDatabaseId
Definition: globals.c:91
int i
Definition: isn.c:73
bool LWLockAcquire(LWLock *lock, LWLockMode mode)
Definition: lwlock.c:1170
void LWLockRelease(LWLock *lock)
Definition: lwlock.c:1783
@ LW_EXCLUSIVE
Definition: lwlock.h:114
AutoVacuumWorkItem av_workItems[NUM_WORKITEMS]
Definition: autovacuum.c:295
BlockNumber avw_blockNumber
Definition: autovacuum.c:265
AutoVacuumWorkItemType avw_type
Definition: autovacuum.c:260
const char * type

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().

◆ AutoVacuumShmemInit()

void AutoVacuumShmemInit ( void  )

Definition at line 3275 of file autovacuum.c.

3276 {
3277  bool found;
3278 
3280  ShmemInitStruct("AutoVacuum Data",
3282  &found);
3283 
3284  if (!IsUnderPostmaster)
3285  {
3286  WorkerInfo worker;
3287  int i;
3288 
3289  Assert(!found);
3290 
3295  memset(AutoVacuumShmem->av_workItems, 0,
3296  sizeof(AutoVacuumWorkItem) * NUM_WORKITEMS);
3297 
3298  worker = (WorkerInfo) ((char *) AutoVacuumShmem +
3299  MAXALIGN(sizeof(AutoVacuumShmemStruct)));
3300 
3301  /* initialize the WorkerInfo free list */
3302  for (i = 0; i < autovacuum_max_workers; i++)
3303  {
3305  &worker[i].wi_links);
3306  pg_atomic_init_flag(&worker[i].wi_dobalance);
3307  }
3308 
3310 
3311  }
3312  else
3313  Assert(found);
3314 }
static void pg_atomic_init_u32(volatile pg_atomic_uint32 *ptr, uint32 val)
Definition: atomics.h:216
static void pg_atomic_init_flag(volatile pg_atomic_flag *ptr)
Definition: atomics.h:165
Size AutoVacuumShmemSize(void)
Definition: autovacuum.c:3256
int autovacuum_max_workers
Definition: autovacuum.c:117
struct WorkerInfoData * WorkerInfo
Definition: autovacuum.c:238
#define MAXALIGN(LEN)
Definition: c.h:811
#define Assert(condition)
Definition: c.h:858
bool IsUnderPostmaster
Definition: globals.c:117
static void dlist_init(dlist_head *head)
Definition: ilist.h:314
static void dlist_push_head(dlist_head *head, dlist_node *node)
Definition: ilist.h:347
void * ShmemInitStruct(const char *name, Size size, bool *foundPtr)
Definition: shmem.c:387
dlist_head av_freeWorkers
Definition: autovacuum.c:292
WorkerInfo av_startingWorker
Definition: autovacuum.c:294
pg_atomic_uint32 av_nworkersForBalance
Definition: autovacuum.c:296
dlist_head av_runningWorkers
Definition: autovacuum.c:293

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().

◆ AutoVacuumShmemSize()

Size AutoVacuumShmemSize ( void  )

Definition at line 3256 of file autovacuum.c.

3257 {
3258  Size size;
3259 
3260  /*
3261  * Need the fixed struct and the array of WorkerInfoData.
3262  */
3263  size = sizeof(AutoVacuumShmemStruct);
3264  size = MAXALIGN(size);
3266  sizeof(WorkerInfoData)));
3267  return size;
3268 }
size_t Size
Definition: c.h:605
Size add_size(Size s1, Size s2)
Definition: shmem.c:493
Size mul_size(Size s1, Size s2)
Definition: shmem.c:510
static pg_noinline void Size size
Definition: slab.c:607

References add_size(), autovacuum_max_workers, MAXALIGN, mul_size(), and size.

Referenced by AutoVacuumShmemInit(), and CalculateShmemSize().

◆ AutoVacWorkerFailed()

void AutoVacWorkerFailed ( void  )

Definition at line 1337 of file autovacuum.c.

1338 {
1340 }
@ AutoVacForkFailed
Definition: autovacuum.c:247
sig_atomic_t av_signal[AutoVacNumSignals]
Definition: autovacuum.c:290

References AutoVacForkFailed, AutoVacuumShmem, and AutoVacuumShmemStruct::av_signal.

Referenced by StartAutovacuumWorker().

◆ AutoVacWorkerMain()

void AutoVacWorkerMain ( char *  startup_data,
size_t  startup_data_len 
)

Definition at line 1359 of file autovacuum.c.

1360 {
1361  sigjmp_buf local_sigjmp_buf;
1362  Oid dbid;
1363 
1364  Assert(startup_data_len == 0);
1365 
1366  /* Release postmaster's working memory context */
1367  if (PostmasterContext)
1368  {
1370  PostmasterContext = NULL;
1371  }
1372 
1374  init_ps_display(NULL);
1375 
1377 
1378  /*
1379  * Set up signal handlers. We operate on databases much like a regular
1380  * backend, so we use the same signal handling. See equivalent code in
1381  * tcop/postgres.c.
1382  */
1384 
1385  /*
1386  * SIGINT is used to signal canceling the current table's vacuum; SIGTERM
1387  * means abort and exit cleanly, and SIGQUIT means abandon ship.
1388  */
1390  pqsignal(SIGTERM, die);
1391  /* SIGQUIT handler was already set up by InitPostmasterChild */
1392 
1393  InitializeTimeouts(); /* establishes SIGALRM handler */
1394 
1400 
1401  /*
1402  * Create a per-backend PGPROC struct in shared memory. We must do this
1403  * before we can use LWLocks or access any shared memory.
1404  */
1405  InitProcess();
1406 
1407  /* Early initialization */
1408  BaseInit();
1409 
1410  /*
1411  * If an exception is encountered, processing resumes here.
1412  *
1413  * Unlike most auxiliary processes, we don't attempt to continue
1414  * processing after an error; we just clean up and exit. The autovac
1415  * launcher is responsible for spawning another worker later.
1416  *
1417  * Note that we use sigsetjmp(..., 1), so that the prevailing signal mask
1418  * (to wit, BlockSig) will be restored when longjmp'ing to here. Thus,
1419  * signals other than SIGQUIT will be blocked until we exit. It might
1420  * seem that this policy makes the HOLD_INTERRUPTS() call redundant, but
1421  * it is not since InterruptPending might be set already.
1422  */
1423  if (sigsetjmp(local_sigjmp_buf, 1) != 0)
1424  {
1425  /* since not using PG_TRY, must reset error stack by hand */
1426  error_context_stack = NULL;
1427 
1428  /* Prevents interrupts while cleaning up */
1429  HOLD_INTERRUPTS();
1430 
1431  /* Report the error to the server log */
1432  EmitErrorReport();
1433 
1434  /*
1435  * We can now go away. Note that because we called InitProcess, a
1436  * callback was registered to do ProcKill, which will clean up
1437  * necessary state.
1438  */
1439  proc_exit(0);
1440  }
1441 
1442  /* We can now handle ereport(ERROR) */
1443  PG_exception_stack = &local_sigjmp_buf;
1444 
1445  sigprocmask(SIG_SETMASK, &UnBlockSig, NULL);
1446 
1447  /*
1448  * Set always-secure search path, so malicious users can't redirect user
1449  * code (e.g. pg_index.indexprs). (That code runs in a
1450  * SECURITY_RESTRICTED_OPERATION sandbox, so malicious users could not
1451  * take control of the entire autovacuum worker in any case.)
1452  */
1453  SetConfigOption("search_path", "", PGC_SUSET, PGC_S_OVERRIDE);
1454 
1455  /*
1456  * Force zero_damaged_pages OFF in the autovac process, even if it is set
1457  * in postgresql.conf. We don't really want such a dangerous option being
1458  * applied non-interactively.
1459  */
1460  SetConfigOption("zero_damaged_pages", "false", PGC_SUSET, PGC_S_OVERRIDE);
1461 
1462  /*
1463  * Force settable timeouts off to avoid letting these settings prevent
1464  * regular maintenance from being executed.
1465  */
1466  SetConfigOption("statement_timeout", "0", PGC_SUSET, PGC_S_OVERRIDE);
1467  SetConfigOption("transaction_timeout", "0", PGC_SUSET, PGC_S_OVERRIDE);
1468  SetConfigOption("lock_timeout", "0", PGC_SUSET, PGC_S_OVERRIDE);
1469  SetConfigOption("idle_in_transaction_session_timeout", "0",
1471 
1472  /*
1473  * Force default_transaction_isolation to READ COMMITTED. We don't want
1474  * to pay the overhead of serializable mode, nor add any risk of causing
1475  * deadlocks or delaying other transactions.
1476  */
1477  SetConfigOption("default_transaction_isolation", "read committed",
1479 
1480  /*
1481  * Force synchronous replication off to allow regular maintenance even if
1482  * we are waiting for standbys to connect. This is important to ensure we
1483  * aren't blocked from performing anti-wraparound tasks.
1484  */
1486  SetConfigOption("synchronous_commit", "local",
1488 
1489  /*
1490  * Even when system is configured to use a different fetch consistency,
1491  * for autovac we always want fresh stats.
1492  */
1493  SetConfigOption("stats_fetch_consistency", "none", PGC_SUSET, PGC_S_OVERRIDE);
1494 
1495  /*
1496  * Get the info about the database we're going to work on.
1497  */
1498  LWLockAcquire(AutovacuumLock, LW_EXCLUSIVE);
1499 
1500  /*
1501  * beware of startingWorker being INVALID; this should normally not
1502  * happen, but if a worker fails after forking and before this, the
1503  * launcher might have decided to remove it from the queue and start
1504  * again.
1505  */
1506  if (AutoVacuumShmem->av_startingWorker != NULL)
1507  {
1509  dbid = MyWorkerInfo->wi_dboid;
1511 
1512  /* insert into the running list */
1515 
1516  /*
1517  * remove from the "starting" pointer, so that the launcher can start
1518  * a new worker if required
1519  */
1521  LWLockRelease(AutovacuumLock);
1522 
1524 
1525  /* wake up the launcher */
1526  if (AutoVacuumShmem->av_launcherpid != 0)
1528  }
1529  else
1530  {
1531  /* no worker entry for me, go away */
1532  elog(WARNING, "autovacuum worker started without a worker entry");
1533  dbid = InvalidOid;
1534  LWLockRelease(AutovacuumLock);
1535  }
1536 
1537  if (OidIsValid(dbid))
1538  {
1539  char dbname[NAMEDATALEN];
1540 
1541  /*
1542  * Report autovac startup to the cumulative stats system. We
1543  * deliberately do this before InitPostgres, so that the
1544  * last_autovac_time will get updated even if the connection attempt
1545  * fails. This is to prevent autovac from getting "stuck" repeatedly
1546  * selecting an unopenable database, rather than making any progress
1547  * on stuff it can connect to.
1548  */
1549  pgstat_report_autovac(dbid);
1550 
1551  /*
1552  * Connect to the selected database, specifying no particular user
1553  *
1554  * Note: if we have selected a just-deleted database (due to using
1555  * stale stats info), we'll fail and exit here.
1556  */
1557  InitPostgres(NULL, dbid, NULL, InvalidOid, 0, dbname);
1560  ereport(DEBUG1,
1561  (errmsg_internal("autovacuum: processing database \"%s\"", dbname)));
1562 
1563  if (PostAuthDelay)
1564  pg_usleep(PostAuthDelay * 1000000L);
1565 
1566  /* And do an appropriate amount of work */
1569  do_autovacuum();
1570  }
1571 
1572  /*
1573  * The launcher will be notified of my death in ProcKill, *if* we managed
1574  * to get a worker slot at all
1575  */
1576 
1577  /* All done, go away */
1578  proc_exit(0);
1579 }
static void FreeWorkerInfo(int code, Datum arg)
Definition: autovacuum.c:1585
static TransactionId recentXid
Definition: autovacuum.c:154
static void do_autovacuum(void)
Definition: autovacuum.c:1873
static MultiXactId recentMulti
Definition: autovacuum.c:155
static WorkerInfo MyWorkerInfo
Definition: autovacuum.c:309
sigset_t UnBlockSig
Definition: pqsignal.c:22
#define OidIsValid(objectId)
Definition: c.h:775
int errmsg_internal(const char *fmt,...)
Definition: elog.c:1159
void EmitErrorReport(void)
Definition: elog.c:1672
ErrorContextCallback * error_context_stack
Definition: elog.c:94
sigjmp_buf * PG_exception_stack
Definition: elog.c:96
#define DEBUG1
Definition: elog.h:30
#define elog(elevel,...)
Definition: elog.h:224
void SetConfigOption(const char *name, const char *value, GucContext context, GucSource source)
Definition: guc.c:4285
@ PGC_S_OVERRIDE
Definition: guc.h:119
@ PGC_SUSET
Definition: guc.h:74
void SignalHandlerForConfigReload(SIGNAL_ARGS)
Definition: interrupt.c:61
void on_shmem_exit(pg_on_exit_callback function, Datum arg)
Definition: ipc.c:365
void proc_exit(int code)
Definition: ipc.c:104
MemoryContext PostmasterContext
Definition: mcxt.c:151
void MemoryContextDelete(MemoryContext context)
Definition: mcxt.c:454
@ NormalProcessing
Definition: miscadmin.h:449
@ InitProcessing
Definition: miscadmin.h:448
#define HOLD_INTERRUPTS()
Definition: miscadmin.h:133
#define SetProcessingMode(mode)
Definition: miscadmin.h:460
@ B_AUTOVAC_WORKER
Definition: miscadmin.h:340
BackendType MyBackendType
Definition: miscinit.c:63
MultiXactId ReadNextMultiXactId(void)
Definition: multixact.c:729
#define NAMEDATALEN
#define die(msg)
void pgstat_report_autovac(Oid dboid)
pqsigfunc pqsignal(int signo, pqsigfunc func)
int PostAuthDelay
Definition: postgres.c:101
void FloatExceptionHandler(SIGNAL_ARGS)
Definition: postgres.c:3019
void StatementCancelHandler(SIGNAL_ARGS)
Definition: postgres.c:3002
#define InvalidOid
Definition: postgres_ext.h:36
unsigned int Oid
Definition: postgres_ext.h:31
void BaseInit(void)
Definition: postinit.c:645
void InitPostgres(const char *in_dbname, Oid dboid, const char *username, Oid useroid, bits32 flags, char *out_dbname)
Definition: postinit.c:736
void procsignal_sigusr1_handler(SIGNAL_ARGS)
Definition: procsignal.c:635
void init_ps_display(const char *fixed_part)
Definition: ps_status.c:267
static void set_ps_display(const char *activity)
Definition: ps_status.h:40
void pg_usleep(long microsec)
Definition: signal.c:53
PGPROC * MyProc
Definition: proc.c:66
void InitProcess(void)
Definition: proc.c:296
char * dbname
Definition: streamutil.c:52
dlist_node wi_links
Definition: autovacuum.c:229
PGPROC * wi_proc
Definition: autovacuum.c:232
void InitializeTimeouts(void)
Definition: timeout.c:470
static TransactionId ReadNextTransactionId(void)
Definition: transam.h:315
#define SIGCHLD
Definition: win32_port.h:178
#define SIGHUP
Definition: win32_port.h:168
#define SIG_DFL
Definition: win32_port.h:163
#define SIGPIPE
Definition: win32_port.h:173
#define kill(pid, sig)
Definition: win32_port.h:485
#define SIGUSR1
Definition: win32_port.h:180
#define SIGUSR2
Definition: win32_port.h:181
#define SIG_IGN
Definition: win32_port.h:165
int synchronous_commit
Definition: xact.c:85
@ SYNCHRONOUS_COMMIT_LOCAL_FLUSH
Definition: xact.h:71

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(), 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.

Variable Documentation

◆ autovacuum_anl_scale

PGDLLIMPORT double autovacuum_anl_scale
extern

Definition at line 125 of file autovacuum.c.

Referenced by relation_needs_vacanalyze().

◆ autovacuum_anl_thresh

PGDLLIMPORT int autovacuum_anl_thresh
extern

Definition at line 124 of file autovacuum.c.

Referenced by relation_needs_vacanalyze().

◆ autovacuum_freeze_max_age

PGDLLIMPORT int autovacuum_freeze_max_age
extern

◆ autovacuum_max_workers

◆ autovacuum_multixact_freeze_max_age

PGDLLIMPORT int autovacuum_multixact_freeze_max_age
extern

◆ autovacuum_naptime

PGDLLIMPORT int autovacuum_naptime
extern

◆ autovacuum_start_daemon

PGDLLIMPORT bool autovacuum_start_daemon
extern

Definition at line 116 of file autovacuum.c.

Referenced by autovac_init(), and AutoVacuumingActive().

◆ autovacuum_vac_cost_delay

PGDLLIMPORT double autovacuum_vac_cost_delay
extern

Definition at line 129 of file autovacuum.c.

Referenced by VacuumUpdateCosts().

◆ autovacuum_vac_cost_limit

PGDLLIMPORT int autovacuum_vac_cost_limit
extern

Definition at line 130 of file autovacuum.c.

Referenced by AutoVacuumUpdateCostLimit().

◆ autovacuum_vac_ins_scale

PGDLLIMPORT double autovacuum_vac_ins_scale
extern

Definition at line 123 of file autovacuum.c.

Referenced by relation_needs_vacanalyze().

◆ autovacuum_vac_ins_thresh

PGDLLIMPORT int autovacuum_vac_ins_thresh
extern

Definition at line 122 of file autovacuum.c.

Referenced by relation_needs_vacanalyze().

◆ autovacuum_vac_scale

PGDLLIMPORT double autovacuum_vac_scale
extern

Definition at line 121 of file autovacuum.c.

Referenced by relation_needs_vacanalyze().

◆ autovacuum_vac_thresh

PGDLLIMPORT int autovacuum_vac_thresh
extern

Definition at line 120 of file autovacuum.c.

Referenced by relation_needs_vacanalyze().

◆ autovacuum_work_mem

PGDLLIMPORT int autovacuum_work_mem
extern

Definition at line 118 of file autovacuum.c.

Referenced by dead_items_alloc(), and ginInsertCleanup().

◆ AutovacuumLauncherPid

PGDLLIMPORT int AutovacuumLauncherPid
extern

Definition at line 312 of file autovacuum.c.

Referenced by FreeWorkerInfo(), and ProcKill().

◆ Log_autovacuum_min_duration

PGDLLIMPORT int Log_autovacuum_min_duration
extern

Definition at line 132 of file autovacuum.c.

Referenced by table_recheck_autovac().