Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1f45555

Browse files
Jan WieckJan Wieck
Jan Wieck
authored and
Jan Wieck
committed
Changed parameter name for shared cache status report interval to
debug_shared_buffers = <seconds> as per previous discussion. Jan
1 parent ef110c0 commit 1f45555

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/backend/storage/buffer/freelist.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/freelist.c,v 1.34 2003/11/13 14:57:15 wieck Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/freelist.c,v 1.35 2003/11/16 16:41:00 wieck Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -87,7 +87,7 @@ static int strategy_cdb_found;
8787
static int strategy_cdb_replace;
8888
static int strategy_get_from;
8989

90-
int BufferStrategyStatInterval = 0;
90+
int DebugSharedBuffers = 0;
9191

9292
static bool strategy_hint_vacuum;
9393
static TransactionId strategy_vacuum_xid;
@@ -184,10 +184,10 @@ StrategyBufferLookup(BufferTag *tagPtr, bool recheck)
184184
BufferStrategyCDB *cdb;
185185
time_t now;
186186

187-
if (BufferStrategyStatInterval > 0)
187+
if (DebugSharedBuffers > 0)
188188
{
189189
time(&now);
190-
if (StrategyControl->stat_report + BufferStrategyStatInterval < now)
190+
if (StrategyControl->stat_report + DebugSharedBuffers < now)
191191
{
192192
long all_hit, b1_hit, t1_hit, t2_hit, b2_hit;
193193
ErrorContextCallback *errcxtold;

src/backend/utils/misc/guc.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Written by Peter Eisentraut <peter_e@gmx.net>.
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.169 2003/11/13 14:57:15 wieck Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.170 2003/11/16 16:41:01 wieck Exp $
1414
*
1515
*--------------------------------------------------------------------
1616
*/
@@ -73,7 +73,7 @@ extern int CheckPointTimeout;
7373
extern int CommitDelay;
7474
extern int CommitSiblings;
7575
extern char *preload_libraries_string;
76-
extern int BufferStrategyStatInterval;
76+
extern int DebugSharedBuffers;
7777

7878
#ifdef HAVE_SYSLOG
7979
extern char *Syslog_facility;
@@ -1192,11 +1192,11 @@ static struct config_int ConfigureNamesInt[] =
11921192
},
11931193

11941194
{
1195-
{"buffer_strategy_status_interval", PGC_POSTMASTER, RESOURCES_MEM,
1196-
gettext_noop("Interval to report buffer strategy status in seconds"),
1195+
{"debug_shared_buffers", PGC_POSTMASTER, RESOURCES_MEM,
1196+
gettext_noop("Interval to report shared buffer status in seconds"),
11971197
NULL
11981198
},
1199-
&BufferStrategyStatInterval,
1199+
&DebugSharedBuffers,
12001200
0, 0, 600, NULL, NULL
12011201
},
12021202

src/backend/utils/misc/postgresql.conf.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
#shared_buffers = 1000 # min 16, at least max_connections*2, 8KB each
5959
#sort_mem = 1024 # min 64, size in KB
6060
#vacuum_mem = 8192 # min 1024, size in KB
61-
#buffer_strategy_status_interval = 0 # 0-600 seconds
61+
#debug_shared_buffers = 0 # 0-600 seconds
6262

6363
# - Free Space Map -
6464

0 commit comments

Comments
 (0)