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 3254 of file autovacuum.c.

3255 {
3257  ereport(WARNING,
3258  (errmsg("autovacuum not started because of misconfiguration"),
3259  errhint("Enable the \"track_counts\" option.")));
3260 }
bool autovacuum_start_daemon
Definition: autovacuum.c:117
int errhint(const char *fmt,...)
Definition: elog.c:1317
int errmsg(const char *fmt,...)
Definition: elog.c:1070
#define WARNING
Definition: elog.h:36
#define ereport(elevel,...)
Definition: elog.h:149
bool pgstat_track_counts
Definition: pgstat.c:203

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 3200 of file autovacuum.c.

3201 {
3203  return false;
3204  return true;
3205 }

References autovacuum_start_daemon, and pgstat_track_counts.

Referenced by HandleAutoVacLauncherInterrupts(), LaunchMissingBackgroundProcesses(), and relation_needs_vacanalyze().

◆ AutoVacuumRequestWork()

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

Definition at line 3212 of file autovacuum.c.

3214 {
3215  int i;
3216  bool result = false;
3217 
3218  LWLockAcquire(AutovacuumLock, LW_EXCLUSIVE);
3219 
3220  /*
3221  * Locate an unused work item and fill it with the given data.
3222  */
3223  for (i = 0; i < NUM_WORKITEMS; i++)
3224  {
3226 
3227  if (workitem->avw_used)
3228  continue;
3229 
3230  workitem->avw_used = true;
3231  workitem->avw_active = false;
3232  workitem->avw_type = type;
3233  workitem->avw_database = MyDatabaseId;
3234  workitem->avw_relation = relationId;
3235  workitem->avw_blockNumber = blkno;
3236  result = true;
3237 
3238  /* done */
3239  break;
3240  }
3241 
3242  LWLockRelease(AutovacuumLock);
3243 
3244  return result;
3245 }
#define NUM_WORKITEMS
Definition: autovacuum.c:270
static AutoVacuumShmemStruct * AutoVacuumShmem
Definition: autovacuum.c:301
Oid MyDatabaseId
Definition: globals.c:93
int i
Definition: isn.c:73
bool LWLockAcquire(LWLock *lock, LWLockMode mode)
Definition: lwlock.c:1168
void LWLockRelease(LWLock *lock)
Definition: lwlock.c:1781
@ LW_EXCLUSIVE
Definition: lwlock.h:114
AutoVacuumWorkItem av_workItems[NUM_WORKITEMS]
Definition: autovacuum.c:297
BlockNumber avw_blockNumber
Definition: autovacuum.c:267
AutoVacuumWorkItemType avw_type
Definition: autovacuum.c:262
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 3286 of file autovacuum.c.

3287 {
3288  bool found;
3289 
3291  ShmemInitStruct("AutoVacuum Data",
3293  &found);
3294 
3295  if (!IsUnderPostmaster)
3296  {
3297  WorkerInfo worker;
3298  int i;
3299 
3300  Assert(!found);
3301 
3306  memset(AutoVacuumShmem->av_workItems, 0,
3307  sizeof(AutoVacuumWorkItem) * NUM_WORKITEMS);
3308 
3309  worker = (WorkerInfo) ((char *) AutoVacuumShmem +
3310  MAXALIGN(sizeof(AutoVacuumShmemStruct)));
3311 
3312  /* initialize the WorkerInfo free list */
3313  for (i = 0; i < autovacuum_max_workers; i++)
3314  {
3316  &worker[i].wi_links);
3317  pg_atomic_init_flag(&worker[i].wi_dobalance);
3318  }
3319 
3321 
3322  }
3323  else
3324  Assert(found);
3325 }
static void pg_atomic_init_u32(volatile pg_atomic_uint32 *ptr, uint32 val)
Definition: atomics.h:221
static void pg_atomic_init_flag(volatile pg_atomic_flag *ptr)
Definition: atomics.h:170
Size AutoVacuumShmemSize(void)
Definition: autovacuum.c:3267
int autovacuum_max_workers
Definition: autovacuum.c:118
struct WorkerInfoData * WorkerInfo
Definition: autovacuum.c:239
#define MAXALIGN(LEN)
Definition: c.h:814
#define Assert(condition)
Definition: c.h:861
bool IsUnderPostmaster
Definition: globals.c:119
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:294
WorkerInfo av_startingWorker
Definition: autovacuum.c:296
pg_atomic_uint32 av_nworkersForBalance
Definition: autovacuum.c:298
dlist_head av_runningWorkers
Definition: autovacuum.c:295

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 3267 of file autovacuum.c.

3268 {
3269  Size size;
3270 
3271  /*
3272  * Need the fixed struct and the array of WorkerInfoData.
3273  */
3274  size = sizeof(AutoVacuumShmemStruct);
3275  size = MAXALIGN(size);
3277  sizeof(WorkerInfoData)));
3278  return size;
3279 }
size_t Size
Definition: c.h:608
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 1339 of file autovacuum.c.

1340 {
1342 }
@ AutoVacForkFailed
Definition: autovacuum.c:248
sig_atomic_t av_signal[AutoVacNumSignals]
Definition: autovacuum.c:292

References AutoVacForkFailed, AutoVacuumShmem, and AutoVacuumShmemStruct::av_signal.

Referenced by StartAutovacuumWorker().

◆ AutoVacWorkerMain()

void AutoVacWorkerMain ( char *  startup_data,
size_t  startup_data_len 
)

Definition at line 1361 of file autovacuum.c.

1362 {
1363  sigjmp_buf local_sigjmp_buf;
1364  Oid dbid;
1365 
1366  Assert(startup_data_len == 0);
1367 
1368  /* Release postmaster's working memory context */
1369  if (PostmasterContext)
1370  {
1372  PostmasterContext = NULL;
1373  }
1374 
1376  init_ps_display(NULL);
1377 
1379 
1380  /*
1381  * Set up signal handlers. We operate on databases much like a regular
1382  * backend, so we use the same signal handling. See equivalent code in
1383  * tcop/postgres.c.
1384  */
1386 
1387  /*
1388  * SIGINT is used to signal canceling the current table's vacuum; SIGTERM
1389  * means abort and exit cleanly, and SIGQUIT means abandon ship.
1390  */
1392  pqsignal(SIGTERM, die);
1393  /* SIGQUIT handler was already set up by InitPostmasterChild */
1394 
1395  InitializeTimeouts(); /* establishes SIGALRM handler */
1396 
1402 
1403  /*
1404  * Create a per-backend PGPROC struct in shared memory. We must do this
1405  * before we can use LWLocks or access any shared memory.
1406  */
1407  InitProcess();
1408 
1409  /* Early initialization */
1410  BaseInit();
1411 
1412  /*
1413  * If an exception is encountered, processing resumes here.
1414  *
1415  * Unlike most auxiliary processes, we don't attempt to continue
1416  * processing after an error; we just clean up and exit. The autovac
1417  * launcher is responsible for spawning another worker later.
1418  *
1419  * Note that we use sigsetjmp(..., 1), so that the prevailing signal mask
1420  * (to wit, BlockSig) will be restored when longjmp'ing to here. Thus,
1421  * signals other than SIGQUIT will be blocked until we exit. It might
1422  * seem that this policy makes the HOLD_INTERRUPTS() call redundant, but
1423  * it is not since InterruptPending might be set already.
1424  */
1425  if (sigsetjmp(local_sigjmp_buf, 1) != 0)
1426  {
1427  /* since not using PG_TRY, must reset error stack by hand */
1428  error_context_stack = NULL;
1429 
1430  /* Prevents interrupts while cleaning up */
1431  HOLD_INTERRUPTS();
1432 
1433  /* Report the error to the server log */
1434  EmitErrorReport();
1435 
1436  /*
1437  * We can now go away. Note that because we called InitProcess, a
1438  * callback was registered to do ProcKill, which will clean up
1439  * necessary state.
1440  */
1441  proc_exit(0);
1442  }
1443 
1444  /* We can now handle ereport(ERROR) */
1445  PG_exception_stack = &local_sigjmp_buf;
1446 
1447  sigprocmask(SIG_SETMASK, &UnBlockSig, NULL);
1448 
1449  /*
1450  * Set always-secure search path, so malicious users can't redirect user
1451  * code (e.g. pg_index.indexprs). (That code runs in a
1452  * SECURITY_RESTRICTED_OPERATION sandbox, so malicious users could not
1453  * take control of the entire autovacuum worker in any case.)
1454  */
1455  SetConfigOption("search_path", "", PGC_SUSET, PGC_S_OVERRIDE);
1456 
1457  /*
1458  * Force zero_damaged_pages OFF in the autovac process, even if it is set
1459  * in postgresql.conf. We don't really want such a dangerous option being
1460  * applied non-interactively.
1461  */
1462  SetConfigOption("zero_damaged_pages", "false", PGC_SUSET, PGC_S_OVERRIDE);
1463 
1464  /*
1465  * Force settable timeouts off to avoid letting these settings prevent
1466  * regular maintenance from being executed.
1467  */
1468  SetConfigOption("statement_timeout", "0", PGC_SUSET, PGC_S_OVERRIDE);
1469  SetConfigOption("transaction_timeout", "0", PGC_SUSET, PGC_S_OVERRIDE);
1470  SetConfigOption("lock_timeout", "0", PGC_SUSET, PGC_S_OVERRIDE);
1471  SetConfigOption("idle_in_transaction_session_timeout", "0",
1473 
1474  /*
1475  * Force default_transaction_isolation to READ COMMITTED. We don't want
1476  * to pay the overhead of serializable mode, nor add any risk of causing
1477  * deadlocks or delaying other transactions.
1478  */
1479  SetConfigOption("default_transaction_isolation", "read committed",
1481 
1482  /*
1483  * Force synchronous replication off to allow regular maintenance even if
1484  * we are waiting for standbys to connect. This is important to ensure we
1485  * aren't blocked from performing anti-wraparound tasks.
1486  */
1488  SetConfigOption("synchronous_commit", "local",
1490 
1491  /*
1492  * Even when system is configured to use a different fetch consistency,
1493  * for autovac we always want fresh stats.
1494  */
1495  SetConfigOption("stats_fetch_consistency", "none", PGC_SUSET, PGC_S_OVERRIDE);
1496 
1497  /*
1498  * Get the info about the database we're going to work on.
1499  */
1500  LWLockAcquire(AutovacuumLock, LW_EXCLUSIVE);
1501 
1502  /*
1503  * beware of startingWorker being INVALID; this should normally not
1504  * happen, but if a worker fails after forking and before this, the
1505  * launcher might have decided to remove it from the queue and start
1506  * again.
1507  */
1508  if (AutoVacuumShmem->av_startingWorker != NULL)
1509  {
1511  dbid = MyWorkerInfo->wi_dboid;
1513 
1514  /* insert into the running list */
1517 
1518  /*
1519  * remove from the "starting" pointer, so that the launcher can start
1520  * a new worker if required
1521  */
1523  LWLockRelease(AutovacuumLock);
1524 
1526 
1527  /* wake up the launcher */
1528  if (AutoVacuumShmem->av_launcherpid != 0)
1530  }
1531  else
1532  {
1533  /* no worker entry for me, go away */
1534  elog(WARNING, "autovacuum worker started without a worker entry");
1535  dbid = InvalidOid;
1536  LWLockRelease(AutovacuumLock);
1537  }
1538 
1539  if (OidIsValid(dbid))
1540  {
1541  char dbname[NAMEDATALEN];
1542 
1543  /*
1544  * Report autovac startup to the cumulative stats system. We
1545  * deliberately do this before InitPostgres, so that the
1546  * last_autovac_time will get updated even if the connection attempt
1547  * fails. This is to prevent autovac from getting "stuck" repeatedly
1548  * selecting an unopenable database, rather than making any progress
1549  * on stuff it can connect to.
1550  */
1551  pgstat_report_autovac(dbid);
1552 
1553  /*
1554  * Connect to the selected database, specifying no particular user
1555  *
1556  * Note: if we have selected a just-deleted database (due to using
1557  * stale stats info), we'll fail and exit here.
1558  */
1559  InitPostgres(NULL, dbid, NULL, InvalidOid, 0, dbname);
1562  ereport(DEBUG1,
1563  (errmsg_internal("autovacuum: processing database \"%s\"", dbname)));
1564 
1565  if (PostAuthDelay)
1566  pg_usleep(PostAuthDelay * 1000000L);
1567 
1568  /* And do an appropriate amount of work */
1571  do_autovacuum();
1572  }
1573 
1574  /*
1575  * The launcher will be notified of my death in ProcKill, *if* we managed
1576  * to get a worker slot at all
1577  */
1578 
1579  /* All done, go away */
1580  proc_exit(0);
1581 }
static void FreeWorkerInfo(int code, Datum arg)
Definition: autovacuum.c:1587
static TransactionId recentXid
Definition: autovacuum.c:155
static void do_autovacuum(void)
Definition: autovacuum.c:1875
static MultiXactId recentMulti
Definition: autovacuum.c:156
static WorkerInfo MyWorkerInfo
Definition: autovacuum.c:311
sigset_t UnBlockSig
Definition: pqsignal.c:22
#define OidIsValid(objectId)
Definition: c.h:778
int errmsg_internal(const char *fmt,...)
Definition: elog.c:1157
void EmitErrorReport(void)
Definition: elog.c:1687
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:225
void SetConfigOption(const char *name, const char *value, GucContext context, GucSource source)
Definition: guc.c:4291
@ 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:446
@ InitProcessing
Definition: miscadmin.h:445
#define GetProcessingMode()
Definition: miscadmin.h:455
#define HOLD_INTERRUPTS()
Definition: miscadmin.h:133
#define SetProcessingMode(mode)
Definition: miscadmin.h:457
@ B_AUTOVAC_WORKER
Definition: miscadmin.h:337
BackendType MyBackendType
Definition: miscinit.c:63
MultiXactId ReadNextMultiXactId(void)
Definition: multixact.c:771
#define NAMEDATALEN
#define die(msg)
void pgstat_report_autovac(Oid dboid)
pqsigfunc pqsignal(int signo, pqsigfunc func)
int PostAuthDelay
Definition: postgres.c:102
void FloatExceptionHandler(SIGNAL_ARGS)
Definition: postgres.c:3052
void StatementCancelHandler(SIGNAL_ARGS)
Definition: postgres.c:3035
#define InvalidOid
Definition: postgres_ext.h:36
unsigned int Oid
Definition: postgres_ext.h:31
void BaseInit(void)
Definition: postinit.c:603
void InitPostgres(const char *in_dbname, Oid dboid, const char *username, Oid useroid, bits32 flags, char *out_dbname)
Definition: postinit.c:697
void procsignal_sigusr1_handler(SIGNAL_ARGS)
Definition: procsignal.c:671
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:67
void InitProcess(void)
Definition: proc.c:343
char * dbname
Definition: streamutil.c:52
dlist_node wi_links
Definition: autovacuum.c:230
PGPROC * wi_proc
Definition: autovacuum.c:233
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:503
#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:86
@ 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(), 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.

Variable Documentation

◆ autovacuum_anl_scale

PGDLLIMPORT double autovacuum_anl_scale
extern

Definition at line 126 of file autovacuum.c.

Referenced by relation_needs_vacanalyze().

◆ autovacuum_anl_thresh

PGDLLIMPORT int autovacuum_anl_thresh
extern

Definition at line 125 of file autovacuum.c.

Referenced by relation_needs_vacanalyze().

◆ autovacuum_freeze_max_age

PGDLLIMPORT int autovacuum_freeze_max_age
extern

◆ autovacuum_max_workers

PGDLLIMPORT int autovacuum_max_workers
extern

◆ 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 117 of file autovacuum.c.

Referenced by autovac_init(), and AutoVacuumingActive().

◆ autovacuum_vac_cost_delay

PGDLLIMPORT double autovacuum_vac_cost_delay
extern

Definition at line 130 of file autovacuum.c.

Referenced by VacuumUpdateCosts().

◆ autovacuum_vac_cost_limit

PGDLLIMPORT int autovacuum_vac_cost_limit
extern

Definition at line 131 of file autovacuum.c.

Referenced by AutoVacuumUpdateCostLimit().

◆ autovacuum_vac_ins_scale

PGDLLIMPORT double autovacuum_vac_ins_scale
extern

Definition at line 124 of file autovacuum.c.

Referenced by relation_needs_vacanalyze().

◆ autovacuum_vac_ins_thresh

PGDLLIMPORT int autovacuum_vac_ins_thresh
extern

Definition at line 123 of file autovacuum.c.

Referenced by relation_needs_vacanalyze().

◆ autovacuum_vac_scale

PGDLLIMPORT double autovacuum_vac_scale
extern

Definition at line 122 of file autovacuum.c.

Referenced by relation_needs_vacanalyze().

◆ autovacuum_vac_thresh

PGDLLIMPORT int autovacuum_vac_thresh
extern

Definition at line 121 of file autovacuum.c.

Referenced by relation_needs_vacanalyze().

◆ autovacuum_work_mem

PGDLLIMPORT int autovacuum_work_mem
extern

Definition at line 119 of file autovacuum.c.

Referenced by dead_items_alloc(), and ginInsertCleanup().

◆ AutovacuumLauncherPid

PGDLLIMPORT int AutovacuumLauncherPid
extern

Definition at line 314 of file autovacuum.c.

Referenced by FreeWorkerInfo(), and ProcKill().

◆ Log_autovacuum_min_duration

PGDLLIMPORT int Log_autovacuum_min_duration
extern

Definition at line 133 of file autovacuum.c.

Referenced by table_recheck_autovac().