Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
848ae330
Commit
848ae330
authored
Feb 24, 2014
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase work_mem and maintenance_work_mem defaults by 4x
New defaults are 4MB and 64MB.
parent
6f14a6f7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
doc/src/sgml/config.sgml
doc/src/sgml/config.sgml
+2
-2
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+2
-2
src/backend/utils/misc/postgresql.conf.sample
src/backend/utils/misc/postgresql.conf.sample
+2
-2
No files found.
doc/src/sgml/config.sgml
View file @
848ae330
...
...
@@ -1213,7 +1213,7 @@ include 'filename'
<para>
Specifies the amount of memory to be used by internal sort operations
and hash tables before writing to temporary disk files. The value
defaults to
one megabyte (<literal>1
MB</>).
defaults to
four megabytes (<literal>4
MB</>).
Note that for a complex query, several sort or hash operations might be
running in parallel; each operation will be allowed to use as much memory
as this value specifies before it starts to write data into temporary
...
...
@@ -1239,7 +1239,7 @@ include 'filename'
Specifies the maximum amount of memory to be used by maintenance
operations, such as <command>VACUUM</command>, <command>CREATE
INDEX</>, and <command>ALTER TABLE ADD FOREIGN KEY</>. It defaults
to
16 megabytes (<literal>16
MB</>). Since only one of these
to
64 megabytes (<literal>64
MB</>). Since only one of these
operations can be executed at a time by a database session, and
an installation normally doesn't have many of them running
concurrently, it's safe to set this value significantly larger
...
...
src/backend/utils/misc/guc.c
View file @
848ae330
...
...
@@ -1773,7 +1773,7 @@ static struct config_int ConfigureNamesInt[] =
GUC_UNIT_KB
},
&
work_mem
,
1024
,
64
,
MAX_KILOBYTES
,
4096
,
64
,
MAX_KILOBYTES
,
NULL
,
NULL
,
NULL
},
...
...
@@ -1784,7 +1784,7 @@ static struct config_int ConfigureNamesInt[] =
GUC_UNIT_KB
},
&
maintenance_work_mem
,
16384
,
1024
,
MAX_KILOBYTES
,
65536
,
1024
,
MAX_KILOBYTES
,
NULL
,
NULL
,
NULL
},
...
...
src/backend/utils/misc/postgresql.conf.sample
View file @
848ae330
...
...
@@ -124,8 +124,8 @@
# per transaction slot, plus lock space (see max_locks_per_transaction).
# It is not advisable to set max_prepared_transactions nonzero unless you
# actively intend to use prepared transactions.
#work_mem =
1
MB # min 64kB
#maintenance_work_mem =
16
MB # min 1MB
#work_mem =
4
MB # min 64kB
#maintenance_work_mem =
64
MB # min 1MB
#autovacuum_work_mem = -1 # min 1MB, or -1 to use maintenance_work_mem
#max_stack_depth = 2MB # min 100kB
#dynamic_shared_memory_type = posix # the default is the first option
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment