diff options
| author | Bruce Momjian | 2003-12-25 03:52:51 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2003-12-25 03:52:51 +0000 |
| commit | aeddc2a60d7fcfdb06b20162478212fa87732db9 (patch) | |
| tree | 07cc9c8f9d9adad5516900a7a9e5a18fd32846b1 /src/include | |
| parent | 3e32e9476f827f9ac76fa3cdb1b3767d8a69619d (diff) | |
Continued rearrangement to permit pgstat + BootstrapMain processes to be
fork/exec'd, in the same mode as the previous patch for backends.
Claudio Natoli
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/pgstat.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/include/pgstat.h b/src/include/pgstat.h index 7628955d437..7ff9dc465b7 100644 --- a/src/include/pgstat.h +++ b/src/include/pgstat.h @@ -5,7 +5,7 @@ * * Copyright (c) 2001-2003, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/include/pgstat.h,v 1.17 2003/11/29 22:40:53 pgsql Exp $ + * $PostgreSQL: pgsql/src/include/pgstat.h,v 1.18 2003/12/25 03:52:51 momjian Exp $ * ---------- */ #ifndef PGSTAT_H @@ -326,6 +326,18 @@ typedef union PgStat_Msg } PgStat_Msg; +#ifdef EXEC_BACKEND +typedef enum STATS_PROCESS_TYPE +{ + STAT_PROC_BUFFER, + STAT_PROC_COLLECTOR +} STATS_PROCESS_TYPE; +#define PGSTAT_FORK_ARGS int argc, char *argv[] +#else +#define PGSTAT_FORK_ARGS void +#endif + + /* ---------- * GUC parameters * ---------- @@ -342,6 +354,17 @@ extern bool pgstat_collect_blocklevel; */ extern bool pgstat_is_running; + +/* ---------- + * Functions called from main + * ---------- + */ +#ifdef EXEC_BACKEND +extern void pgstat_main(PGSTAT_FORK_ARGS); +extern void pgstat_mainChild(PGSTAT_FORK_ARGS); +#endif + + /* ---------- * Functions called from postmaster * ---------- |
