Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1f45555

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 parentef110c0 commit1f45555

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 intstrategy_cdb_found;
8787
staticintstrategy_cdb_replace;
8888
staticintstrategy_get_from;
8989

90-
intBufferStrategyStatInterval=0;
90+
intDebugSharedBuffers=0;
9191

9292
staticboolstrategy_hint_vacuum;
9393
staticTransactionIdstrategy_vacuum_xid;
@@ -184,10 +184,10 @@ StrategyBufferLookup(BufferTag *tagPtr, bool recheck)
184184
BufferStrategyCDB*cdb;
185185
time_tnow;
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
longall_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 intCheckPointTimeout;
7373
externintCommitDelay;
7474
externintCommitSiblings;
7575
externchar*preload_libraries_string;
76-
externintBufferStrategyStatInterval;
76+
externintDebugSharedBuffers;
7777

7878
#ifdefHAVE_SYSLOG
7979
externchar*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 reportbuffer strategy status in seconds"),
1195+
{"debug_shared_buffers",PGC_POSTMASTER,RESOURCES_MEM,
1196+
gettext_noop("Interval to reportshared 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)

[8]ページ先頭

©2009-2025 Movatter.jp