Skip to content

Commit cb8d329

Browse files
vpodzimeAleksei Shpakovskii
authored andcommitted
Update the postgresql.conf patch file to apply with PostgreSQL 11
1 parent ac6f63c commit cb8d329

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

deps-packaging/postgresql-hub/postgresql.conf.cfengine.patch

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
--- src/backend/utils/misc/postgresql.conf.sample 2018-05-07 22:51:40.000000000 +0200
2-
+++ src/backend/utils/misc/postgresql.conf.cfengine 2018-11-02 09:00:53.333034654 +0100
1+
--- postgresql.conf.sample 2018-10-15 23:12:02.000000000 +0200
2+
+++ postgresql.conf.cfengine 2018-11-02 11:20:59.706886428 +0100
33
@@ -1,6 +1,6 @@
44
-# -----------------------------
55
-# PostgreSQL configuration file
@@ -30,7 +30,7 @@
3030
# (change requires restart)
3131
#bonjour = off # advertise server via Bonjour
3232
# (change requires restart)
33-
@@ -110,7 +114,7 @@
33+
@@ -114,7 +118,7 @@
3434

3535
# - Memory -
3636

@@ -39,7 +39,7 @@
3939
# (change requires restart)
4040
#huge_pages = try # on, off, or try
4141
# (change requires restart)
42-
@@ -119,11 +123,17 @@
42+
@@ -123,10 +127,16 @@
4343
# (change requires restart)
4444
# Caution: it is not advisable to set max_prepared_transactions nonzero unless
4545
# you actively intend to use prepared transactions.
@@ -52,13 +52,14 @@
5252
+# actively intend to use prepared transactions.
5353
+work_mem = 48MB # min 64kB
5454
+maintenance_work_mem = 512MB # min 1MB
55+
+
5556
#autovacuum_work_mem = -1 # min 1MB, or -1 to use maintenance_work_mem
5657
-#max_stack_depth = 2MB # min 100kB
5758
+max_stack_depth = 4MB # min 100kB
5859
#dynamic_shared_memory_type = posix # the default is the first option
5960
# supported by the operating system:
6061
# posix
61-
@@ -182,7 +192,7 @@
62+
@@ -186,7 +196,7 @@
6263
#fsync = on # flush data to disk for crash safety
6364
# (turning this off can cause
6465
# unrecoverable data corruption)
@@ -67,7 +68,7 @@
6768
# off, local, remote_write, remote_apply, or on
6869
#wal_sync_method = fsync # the default is the first option
6970
# supported by the operating system:
70-
@@ -206,8 +216,9 @@
71+
@@ -210,8 +220,9 @@
7172
# - Checkpoints -
7273

7374
#checkpoint_timeout = 5min # range 30s-1d
@@ -78,7 +79,7 @@
7879
#checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0
7980
#checkpoint_flush_after = 0 # measured in pages, 0 disables
8081
#checkpoint_warning = 30s # 0 disables
81-
@@ -442,7 +453,7 @@
82+
@@ -462,7 +473,7 @@
8283
#log_duration = off
8384
#log_error_verbosity = default # terse, default, or verbose messages
8485
#log_hostname = off
@@ -87,7 +88,7 @@
8788
# %a = application name
8889
# %u = user name
8990
# %d = database name
90-
@@ -511,21 +522,21 @@
91+
@@ -532,21 +543,21 @@
9192
# their durations, > 0 logs only
9293
# actions running at least this number
9394
# of milliseconds.
@@ -112,7 +113,7 @@
112113
# autovacuum, in milliseconds;
113114
# -1 means use vacuum_cost_delay
114115
#autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for
115-
@@ -598,6 +609,10 @@
116+
@@ -628,6 +639,10 @@
116117
# LOCK MANAGEMENT
117118
#------------------------------------------------------------------------------
118119

0 commit comments

Comments
 (0)