Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 060aff9

Browse files
committedNov 2, 2018
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 1ac334b commit 060aff9

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
@@ -3351,7 +3351,8 @@ include_dir 'conf.d'
33513351
used. When setting this parameter you should consider both
33523352
<productname>PostgreSQL</productname>'s shared buffers and the
33533353
portion of the kernel's disk cache that will be used for
3354-
<productname>PostgreSQL</productname> data files. Also, take
3354+
<productname>PostgreSQL</productname> data files, though some
3355+
data might exist in both places. Also, take
33553356
into account the expected number of concurrent queries on different
33563357
tables, since they will have to share the available
33573358
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
@@ -2486,10 +2486,9 @@ static struct config_int ConfigureNamesInt[] =
24862486

24872487
{
24882488
{"effective_cache_size", PGC_USERSET, QUERY_TUNING_COST,
2489-
gettext_noop("Sets the planner's assumption about the size of the disk cache."),
2490-
gettext_noop("That is, the portion of the kernel's disk cache that "
2491-
"will be used for PostgreSQL data files. This is measured in disk "
2492-
"pages, which are normally 8 kB each."),
2489+
gettext_noop("Sets the planner's assumption about the size of the data cache."),
2490+
gettext_noop("That is, the size of the cache used for PostgreSQL data files. "
2491+
"This is measured in disk pages, which are normally 8 kB each."),
24932492
GUC_UNIT_BLOCKS,
24942493
},
24952494
&effective_cache_size,

0 commit comments

Comments
 (0)
Failed to load comments.