1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-26 12:21:12 +03:00

Endeavor to make pgstats buffer process (a) safe and (b) useful.

Make sure it exits immediately when collector process dies --- in old code,
buffer process would hang around and compete with the new buffer process
for packets.  Make sure it doesn't block on writing the pipe when the
collector falls more than a pipeload behind.  Avoid leaking pgstats FDs
into every backend.
This commit is contained in:
Tom Lane
2001-08-05 02:06:50 +00:00
parent 5181d37e4c
commit e8f1097361
4 changed files with 324 additions and 199 deletions

View File

@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: miscadmin.h,v 1.87 2001/06/18 21:38:02 momjian Exp $
* $Id: miscadmin.h,v 1.88 2001/08/05 02:06:50 tgl Exp $
*
* NOTES
* some of the information in this file should be moved to
@ -108,6 +108,7 @@ extern void ProcessInterrupts(void);
* from postmaster/postmaster.c
*/
extern int PostmasterMain(int argc, char *argv[]);
extern void ClosePostmasterPorts(bool pgstat_too);
/*
* from utils/init/globals.c