Changed parameter name for shared cache status report interval to
debug_shared_buffers = <seconds> as per previous discussion. Jan
This commit is contained in:
parent
ef110c0a78
commit
1f45555892
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/freelist.c,v 1.34 2003/11/13 14:57:15 wieck Exp $
|
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/freelist.c,v 1.35 2003/11/16 16:41:00 wieck Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -87,7 +87,7 @@ static int strategy_cdb_found;
|
|||||||
static int strategy_cdb_replace;
|
static int strategy_cdb_replace;
|
||||||
static int strategy_get_from;
|
static int strategy_get_from;
|
||||||
|
|
||||||
int BufferStrategyStatInterval = 0;
|
int DebugSharedBuffers = 0;
|
||||||
|
|
||||||
static bool strategy_hint_vacuum;
|
static bool strategy_hint_vacuum;
|
||||||
static TransactionId strategy_vacuum_xid;
|
static TransactionId strategy_vacuum_xid;
|
||||||
@ -184,10 +184,10 @@ StrategyBufferLookup(BufferTag *tagPtr, bool recheck)
|
|||||||
BufferStrategyCDB *cdb;
|
BufferStrategyCDB *cdb;
|
||||||
time_t now;
|
time_t now;
|
||||||
|
|
||||||
if (BufferStrategyStatInterval > 0)
|
if (DebugSharedBuffers > 0)
|
||||||
{
|
{
|
||||||
time(&now);
|
time(&now);
|
||||||
if (StrategyControl->stat_report + BufferStrategyStatInterval < now)
|
if (StrategyControl->stat_report + DebugSharedBuffers < now)
|
||||||
{
|
{
|
||||||
long all_hit, b1_hit, t1_hit, t2_hit, b2_hit;
|
long all_hit, b1_hit, t1_hit, t2_hit, b2_hit;
|
||||||
ErrorContextCallback *errcxtold;
|
ErrorContextCallback *errcxtold;
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* Written by Peter Eisentraut <peter_e@gmx.net>.
|
* Written by Peter Eisentraut <peter_e@gmx.net>.
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.169 2003/11/13 14:57:15 wieck Exp $
|
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.170 2003/11/16 16:41:01 wieck Exp $
|
||||||
*
|
*
|
||||||
*--------------------------------------------------------------------
|
*--------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -73,7 +73,7 @@ extern int CheckPointTimeout;
|
|||||||
extern int CommitDelay;
|
extern int CommitDelay;
|
||||||
extern int CommitSiblings;
|
extern int CommitSiblings;
|
||||||
extern char *preload_libraries_string;
|
extern char *preload_libraries_string;
|
||||||
extern int BufferStrategyStatInterval;
|
extern int DebugSharedBuffers;
|
||||||
|
|
||||||
#ifdef HAVE_SYSLOG
|
#ifdef HAVE_SYSLOG
|
||||||
extern char *Syslog_facility;
|
extern char *Syslog_facility;
|
||||||
@ -1192,11 +1192,11 @@ static struct config_int ConfigureNamesInt[] =
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
{"buffer_strategy_status_interval", PGC_POSTMASTER, RESOURCES_MEM,
|
{"debug_shared_buffers", PGC_POSTMASTER, RESOURCES_MEM,
|
||||||
gettext_noop("Interval to report buffer strategy status in seconds"),
|
gettext_noop("Interval to report shared buffer status in seconds"),
|
||||||
NULL
|
NULL
|
||||||
},
|
},
|
||||||
&BufferStrategyStatInterval,
|
&DebugSharedBuffers,
|
||||||
0, 0, 600, NULL, NULL
|
0, 0, 600, NULL, NULL
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
#shared_buffers = 1000 # min 16, at least max_connections*2, 8KB each
|
#shared_buffers = 1000 # min 16, at least max_connections*2, 8KB each
|
||||||
#sort_mem = 1024 # min 64, size in KB
|
#sort_mem = 1024 # min 64, size in KB
|
||||||
#vacuum_mem = 8192 # min 1024, size in KB
|
#vacuum_mem = 8192 # min 1024, size in KB
|
||||||
#buffer_strategy_status_interval = 0 # 0-600 seconds
|
#debug_shared_buffers = 0 # 0-600 seconds
|
||||||
|
|
||||||
# - Free Space Map -
|
# - Free Space Map -
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user