]> granicus.if.org Git - postgresql/blob - src/include/postmaster/autovacuum.h
Integrate autovacuum functionality into the backend. There's still a
[postgresql] / src / include / postmaster / autovacuum.h
1 /*-------------------------------------------------------------------------
2  *
3  * autovacuum.h
4  *        header file for integrated autovacuum daemon
5  *
6  *
7  * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * $PostgreSQL: pgsql/src/include/postmaster/autovacuum.h,v 1.1 2005/07/14 05:13:43 tgl Exp $
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef AUTOVACUUM_H
15 #define AUTOVACUUM_H
16
17 /* GUC variables */
18 extern bool             autovacuum_start_daemon; 
19 extern int              autovacuum_naptime; 
20 extern int              autovacuum_vac_thresh;
21 extern double   autovacuum_vac_scale;
22 extern int              autovacuum_anl_thresh;
23 extern double   autovacuum_anl_scale;
24
25 /* Status inquiry functions */
26 extern bool AutoVacuumingActive(void);
27 extern bool IsAutoVacuumProcess(void);
28
29 /* Functions to start autovacuum process, called from postmaster */
30 extern void autovac_init(void);
31 extern int autovac_start(void);
32 extern void autovac_stopped(void);
33
34 #ifdef EXEC_BACKEND
35 extern void AutoVacMain(int argc, char *argv[]);
36 #endif
37
38 #endif /* AUTOVACUUM_H */