Skip to content

Commit a4a8c0d

Browse files
committed
doc: clarify the effect of concurrent work_mem allocations
Reported-by: Sami Imseih Discussion: https://postgr.es/m/66590882-F48C-4A25-83E3-73792CF8C51F@amazon.com Backpatch-through: 11
1 parent ba0eb75 commit a4a8c0d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/src/sgml/config.sgml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,9 +1582,10 @@ include_dir 'conf.d'
15821582
Specifies the amount of memory to be used by internal sort operations
15831583
and hash tables before writing to temporary disk files. The value
15841584
defaults to four megabytes (<literal>4MB</literal>).
1585-
Note that for a complex query, several sort or hash operations might be
1586-
running in parallel; each operation will be allowed to use as much memory
1587-
as this value specifies before it starts to write data into temporary
1585+
Note that a complex query might perform several sort and hash
1586+
operations at the same time, with each operation generally being
1587+
allowed to use as much memory as this value specifies before it
1588+
starts to write data into temporary
15881589
files. Also, several running sessions could be doing such operations
15891590
concurrently. Therefore, the total memory used could be many
15901591
times the value of <varname>work_mem</varname>; it is necessary to

0 commit comments

Comments
 (0)