↑↓ 选择↵ 打开⌫ 切换范围完整搜索

PG.CENTER 连接 PostgreSQL 文档、百科与生态知识。由 Pigsty 维护。

Wiki / 配置参数

sort_mem

Specifies the amount of memory to be used by internal sort operations and hash tables before switching to temporary disk files. The value is specified in kilobytes, and defaults to 1024 kilobytes (1 MB). Note that for a complex query, several sort or hash operations might be running in parallel; each one will be allowed to use as much memory as this value specifies before it starts to put data into temporary files. Also, several running sessions could be doing sort operations simultaneously. So the total memory used could be many times the value of sort_mem. Sort operations are used by ORDER BY, merge joins, and CREATE INDEX. Hash tables are used in hash joins, hash-based aggregation, and hash-based processing of IN subqueries. Because CREATE INDEX is used when restoring a database, increasing sort_mem before doing a large restore operation can improve performance.

英文手册覆盖始于 PostgreSQL 7.4. 来源历史与运行验证各自保留独立版本边界。

当前阅读 PG 7.4·选择有来源记录的版本

此版本暂无所选语言的定义,以下显示原始英文内容。

boot val
未知
category
Memory
context
未知
documented
true
enumvals
未知
extra desc
未知
lang
en
max val
未知
metadata version
未知
min val
未知
name
sort_mem
short desc
未知
source
english-manual
unit
未知
vartype
integer

版本定义 PG 7.4

Specifies the amount of memory to be used by internal sort operations and hash tables before switching to temporary disk files. The value is specified in kilobytes, and defaults to 1024 kilobytes (1 MB). Note that for a complex query, several sort or hash operations might be running in parallel; each one will be allowed to use as much memory as this value specifies before it starts to put data into temporary files. Also, several running sessions could be doing sort operations simultaneously. So the total memory used could be many times the value of sort_mem. Sort operations are used by ORDER BY, merge joins, and CREATE INDEX. Hash tables are used in hash joins, hash-based aggregation, and hash-based processing of IN subqueries. Because CREATE INDEX is used when restoring a database, increasing sort_mem before doing a large restore operation can improve performance.

比较版本

来源引用

完整定义与证据 JSON

定义来源

center · PostgreSQL 7.4 · english-manuals:56283cb52aa7d965a395aab7e042763411a0cb313db0d7a86332b203f3c3fe4e

正文语言: en · english-manuals:56283cb52aa7d965a395aab7e042763411a0cb313db0d7a86332b203f3c3fe4e