mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
Remove the separate 'stats buffer' process, letting backend stats messages
be delivered directly to the collector process. The extra process context swaps required to transfer data through the buffer process seem to outweigh any value the buffering might have. Per recent discussion and tests. I modified Bruce's draft patch to use poll() rather than select() where available (this makes a noticeable difference on my system), and fixed up the EXEC_BACKEND case.
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
*
|
||||
* Copyright (c) 2001-2006, PostgreSQL Global Development Group
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/pgstat.h,v 1.47 2006/06/19 01:51:21 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/include/pgstat.h,v 1.48 2006/06/29 20:00:08 tgl Exp $
|
||||
* ----------
|
||||
*/
|
||||
#ifndef PGSTAT_H
|
||||
@ -362,7 +362,6 @@ extern int pgstat_start(void);
|
||||
extern void pgstat_reset_all(void);
|
||||
|
||||
#ifdef EXEC_BACKEND
|
||||
extern void PgstatBufferMain(int argc, char *argv[]);
|
||||
extern void PgstatCollectorMain(int argc, char *argv[]);
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user