mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
Continued rearrangement to permit pgstat + BootstrapMain processes to be
fork/exec'd, in the same mode as the previous patch for backends. Claudio Natoli
This commit is contained in:
@ -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
|
||||
* ----------
|
||||
|
Reference in New Issue
Block a user