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

3254 {
3256  ereport(WARNING,
3257  (errmsg("autovacuum not started because of misconfiguration"),
3258  errhint("Enable the \"track_counts\" option.")));
3259 }
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:192

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

3200 {
3202  return false;
3203  return true;
3204 }

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

3213 {
3214  int i;
3215  bool result = false;
3216 
3217  LWLockAcquire(AutovacuumLock, LW_EXCLUSIVE);
3218 
3219  /*
3220  * Locate an unused work item and fill it with the given data.
3221  */
3222  for (i = 0; i < NUM_WORKITEMS; i++)
3223  {
3225 
3226  if (workitem->avw_used)
3227  continue;
3228 
3229  workitem->avw_used = true;
3230  workitem->avw_active = false;
3231  workitem->avw_type = type;
3232  workitem->avw_database = MyDatabaseId;
3233  workitem->avw_relation = relationId;
3234  workitem->avw_blockNumber = blkno;
3235  result = true;
3236 
3237  /* done */
3238  break;
3239  }
3240 
3241  LWLockRelease(AutovacuumLock);
3242 
3243  return result;
3244 }
#define NUM_WORKITEMS
Definition: autovacuum.c:269
static AutoVacuumShmemStruct * AutoVacuumShmem
Definition: autovacuum.c:300
Oid MyDatabaseId
Definition: globals.c:92
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:296
BlockNumber avw_blockNumber
Definition: autovacuum.c:266
AutoVacuumWorkItemType avw_type
Definition: autovacuum.c:261
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 3285 of file autovacuum.c.

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

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

3267 {
3268  Size size;
3269 
3270  /*
3271  * Need the fixed struct and the array of WorkerInfoData.
3272  */
3273  size = sizeof(AutoVacuumShmemStruct);
3274  size = MAXALIGN(size);
3276  sizeof(WorkerInfoData)));
3277  return size;
3278 }
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 1338 of file autovacuum.c.

1339 {
1341 }
@ AutoVacForkFailed
Definition: autovacuum.c:248
sig_atomic_t av_signal[AutoVacNumSignals]
Definition: autovacuum.c:291

References AutoVacForkFailed, AutoVacuumShmem, and AutoVacuumShmemStruct::av_signal.

Referenced by StartAutovacuumWorker().

◆ AutoVacWorkerMain()

void AutoVacWorkerMain ( char *  startup_data,
size_t  startup_data_len 
)

Definition at line 1360 of file autovacuum.c.

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