2005-07-14 07:13:45 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* autovacuum.h
|
|
|
|
* header file for integrated autovacuum daemon
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
2005-10-15 04:49:52 +02:00
|
|
|
* $PostgreSQL: pgsql/src/include/postmaster/autovacuum.h,v 1.3 2005/10/15 02:49:46 momjian Exp $
|
2005-07-14 07:13:45 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef AUTOVACUUM_H
|
|
|
|
#define AUTOVACUUM_H
|
|
|
|
|
|
|
|
/* GUC variables */
|
2005-10-15 04:49:52 +02:00
|
|
|
extern bool autovacuum_start_daemon;
|
|
|
|
extern int autovacuum_naptime;
|
|
|
|
extern int autovacuum_vac_thresh;
|
|
|
|
extern double autovacuum_vac_scale;
|
|
|
|
extern int autovacuum_anl_thresh;
|
|
|
|
extern double autovacuum_anl_scale;
|
|
|
|
extern int autovacuum_vac_cost_delay;
|
|
|
|
extern int autovacuum_vac_cost_limit;
|
2005-07-14 07:13:45 +02:00
|
|
|
|
|
|
|
/* Status inquiry functions */
|
|
|
|
extern bool AutoVacuumingActive(void);
|
|
|
|
extern bool IsAutoVacuumProcess(void);
|
|
|
|
|
|
|
|
/* Functions to start autovacuum process, called from postmaster */
|
|
|
|
extern void autovac_init(void);
|
2005-10-15 04:49:52 +02:00
|
|
|
extern int autovac_start(void);
|
2005-07-14 07:13:45 +02:00
|
|
|
extern void autovac_stopped(void);
|
|
|
|
|
|
|
|
#ifdef EXEC_BACKEND
|
|
|
|
extern void AutoVacMain(int argc, char *argv[]);
|
|
|
|
#endif
|
|
|
|
|
2005-10-15 04:49:52 +02:00
|
|
|
#endif /* AUTOVACUUM_H */
|