File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 2222 - PYTHON_VERSION=2 PG_VERSION=9.6
2323 - PYTHON_VERSION=2 PG_VERSION=9.5
2424 - PYTHON_VERSION=2 PG_VERSION=9.4
25+ - PYTHON_VERSION=3 PG_VERSION=13
2526 - PYTHON_VERSION=3 PG_VERSION=12
2627 - PYTHON_VERSION=3 PG_VERSION=11
2728 - PYTHON_VERSION=3 PG_VERSION=10
Original file line number Diff line number Diff line change 3030MAX_REPLICATION_SLOTS = 10
3131MAX_WORKER_PROCESSES = 10
3232WAL_KEEP_SEGMENTS = 20
33+ WAL_KEEP_SIZE = 320
3334MAX_WAL_SENDERS = 10
3435
3536# logical replication settings
Original file line number Diff line number Diff line change @@ -519,9 +519,14 @@ def get_auth_method(t):
519519 # select a proper wal_level for PostgreSQL
520520 wal_level = 'replica' if self ._pg_version >= '9.6' else 'hot_standby'
521521
522- self .append_conf (hot_standby = True ,
523- wal_keep_segments = WAL_KEEP_SEGMENTS ,
524- wal_level = wal_level ) # yapf: disable
522+ if self ._pg_version < '13' :
523+ self .append_conf (hot_standby = True ,
524+ wal_keep_segments = WAL_KEEP_SEGMENTS ,
525+ wal_level = wal_level ) # yapf: disable
526+ else :
527+ self .append_conf (hot_standby = True ,
528+ wal_keep_size = WAL_KEEP_SIZE ,
529+ wal_level = wal_level ) # yapf: disable
525530
526531 # logical replication
527532 if allow_logical :
You can’t perform that action at this time.
0 commit comments