Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
docker-iot-v3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
deploy
docker-iot-v3
Commits
21103608
Commit
21103608
authored
Nov 28, 2022
by
吴文龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据库内存
parent
7f0ce80b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
postgresql.conf
db/postgresql.conf
+7
-7
No files found.
db/postgresql.conf
View file @
21103608
...
@@ -62,7 +62,7 @@ listen_addresses = '*'
...
@@ -62,7 +62,7 @@ listen_addresses = '*'
# defaults to 'localhost'; use '*' for all
# defaults to 'localhost'; use '*' for all
# (change requires restart)
# (change requires restart)
#port = 5432 # (change requires restart)
#port = 5432 # (change requires restart)
max_connections
=
1
000
# (change requires restart)
max_connections
=
2
000
# (change requires restart)
#superuser_reserved_connections = 3 # (change requires restart)
#superuser_reserved_connections = 3 # (change requires restart)
#unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories
#unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories
# (change requires restart)
# (change requires restart)
...
@@ -119,18 +119,18 @@ max_connections = 1000 # (change requires restart)
...
@@ -119,18 +119,18 @@ max_connections = 1000 # (change requires restart)
# - Memory -
# - Memory -
shared_buffers
=
128
M
B
# min 128kB
shared_buffers
=
8
G
B
# min 128kB
# (change requires restart)
# (change requires restart)
#huge_pages = try # on, off, or try
#huge_pages = try # on, off, or try
# (change requires restart)
# (change requires restart)
#temp_buffers = 8MB # min 800kB
#temp_buffers = 8MB # min 800kB
#max_prepared_transactions =
0 # zero disables the feature
max_prepared_transactions
=
200
0
# zero disables the feature
# (change requires restart)
# (change requires restart)
# Caution: it is not advisable to set max_prepared_transactions nonzero unless
# Caution: it is not advisable to set max_prepared_transactions nonzero unless
# you actively intend to use prepared transactions.
# you actively intend to use prepared transactions.
#work_mem = 4
MB # min 64kB
w8ork_mem
=
MB
# min 64kB
#maintenance_work_mem = 64M
B # min 1MB
maintenance_work_mem
=
1
G
B
# min 1MB
#
autovacuum_work_mem = -1 # min 1MB, or -1 to use maintenance_work_mem
autovacuum_work_mem
= -
1
# min 1MB, or -1 to use maintenance_work_mem
#max_stack_depth = 2MB # min 100kB
#max_stack_depth = 2MB # min 100kB
#shared_memory_type = mmap # the default is the first option
#shared_memory_type = mmap # the default is the first option
# supported by the operating system:
# supported by the operating system:
...
@@ -385,7 +385,7 @@ max_replication_slots = 10 # max number of replication slots
...
@@ -385,7 +385,7 @@ max_replication_slots = 10 # max number of replication slots
#min_parallel_table_scan_size = 8MB
#min_parallel_table_scan_size = 8MB
#min_parallel_index_scan_size = 512kB
#min_parallel_index_scan_size = 512kB
#effective_cache_size = 4
GB
effective_cache_size
=
16
GB
# - Genetic Query Optimizer -
# - Genetic Query Optimizer -
...
...
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