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

Commit 2a279b6

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 4f67ff1 commit 2a279b6

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
@@ -3760,7 +3760,8 @@ include_dir 'conf.d'
37603760
used. When setting this parameter you should consider both
37613761
<productname>PostgreSQL</productname>'s shared buffers and the
37623762
portion of the kernel's disk cache that will be used for
3763-
<productname>PostgreSQL</productname> data files. Also, take
3763+
<productname>PostgreSQL</productname> data files, though some
3764+
data might exist in both places. Also, take
37643765
into account the expected number of concurrent queries on different
37653766
tables, since they will have to share the available
37663767
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
@@ -2738,10 +2738,9 @@ static struct config_int ConfigureNamesInt[] =
27382738

27392739
{
27402740
{"effective_cache_size", PGC_USERSET, QUERY_TUNING_COST,
2741-
gettext_noop("Sets the planner's assumption about the size of the disk cache."),
2742-
gettext_noop("That is, the portion of the kernel's disk cache that "
2743-
"will be used for PostgreSQL data files. This is measured in disk "
2744-
"pages, which are normally 8 kB each."),
2741+
gettext_noop("Sets the planner's assumption about the size of the data cache."),
2742+
gettext_noop("That is, the size of the cache used for PostgreSQL data files. "
2743+
"This is measured in disk pages, which are normally 8 kB each."),
27452744
GUC_UNIT_BLOCKS,
27462745
},
27472746
&effective_cache_size,

0 commit comments

Comments
 (0)