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

Commit 2352441

Browse files
committed
GUC: adjust effective_cache_size docs and SQL description
Clarify that effective_cache_size is both kernel buffers and shared buffers. Reported-by: nat@makarevitch.org Discussion: https://postgr.es/m/153685164808.22334.15432535018443165207@wrigleys.postgresql.org Backpatch-through: 9.3
1 parent 708b96d commit 2352441

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc/src/sgml/config.sgml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4143,7 +4143,8 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class="
41434143
used. When setting this parameter you should consider both
41444144
<productname>PostgreSQL</productname>'s shared buffers and the
41454145
portion of the kernel's disk cache that will be used for
4146-
<productname>PostgreSQL</productname> data files. Also, take
4146+
<productname>PostgreSQL</productname> data files, though some
4147+
data might exist in both places. Also, take
41474148
into account the expected number of concurrent queries on different
41484149
tables, since they will have to share the available
41494150
space. This parameter has no effect on the size of shared

src/backend/utils/misc/guc.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2979,10 +2979,9 @@ static struct config_int ConfigureNamesInt[] =
29792979

29802980
{
29812981
{"effective_cache_size", PGC_USERSET, QUERY_TUNING_COST,
2982-
gettext_noop("Sets the planner's assumption about the size of the disk cache."),
2983-
gettext_noop("That is, the portion of the kernel's disk cache that "
2984-
"will be used for PostgreSQL data files. This is measured in disk "
2985-
"pages, which are normally 8 kB each."),
2982+
gettext_noop("Sets the planner's assumption about the size of the data cache."),
2983+
gettext_noop("That is, the size of the cache used for PostgreSQL data files. "
2984+
"This is measured in disk pages, which are normally 8 kB each."),
29862985
GUC_UNIT_BLOCKS,
29872986
},
29882987
&effective_cache_size,

0 commit comments

Comments
 (0)