diff options
| author | Tom Lane | 2005-07-14 05:13:45 +0000 |
|---|---|---|
| committer | Tom Lane | 2005-07-14 05:13:45 +0000 |
| commit | 29094193f526bf90671d71b59a2e007aad1fcae5 (patch) | |
| tree | 51e632c843ab9c7eedbd0b01f4de5b27c202443e /src/include/postmaster | |
| parent | f2bf2d2dc5cef3f5b9cf50493490fa9931f982b2 (diff) | |
Integrate autovacuum functionality into the backend. There's still a
few loose ends to be dealt with, but it seems to work. Alvaro Herrera,
based on the contrib code by Matthew O'Connor.
Diffstat (limited to 'src/include/postmaster')
| -rw-r--r-- | src/include/postmaster/autovacuum.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/include/postmaster/autovacuum.h b/src/include/postmaster/autovacuum.h new file mode 100644 index 00000000000..85667af1cc6 --- /dev/null +++ b/src/include/postmaster/autovacuum.h @@ -0,0 +1,38 @@ +/*------------------------------------------------------------------------- + * + * 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 + * + * $PostgreSQL: pgsql/src/include/postmaster/autovacuum.h,v 1.1 2005/07/14 05:13:43 tgl Exp $ + * + *------------------------------------------------------------------------- + */ +#ifndef AUTOVACUUM_H +#define AUTOVACUUM_H + +/* GUC variables */ +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; + +/* Status inquiry functions */ +extern bool AutoVacuumingActive(void); +extern bool IsAutoVacuumProcess(void); + +/* Functions to start autovacuum process, called from postmaster */ +extern void autovac_init(void); +extern int autovac_start(void); +extern void autovac_stopped(void); + +#ifdef EXEC_BACKEND +extern void AutoVacMain(int argc, char *argv[]); +#endif + +#endif /* AUTOVACUUM_H */ |
