Skip to content

Commit 3124b0f

Browse files
authored
Merge pull request #55 from postgrespro/support_rel13
Add PostgreSQL 13 support
2 parents 76ea566 + 63463a1 commit 3124b0f

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

Diff for: .travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ env:
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

Diff for: testgres/consts.py

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
MAX_REPLICATION_SLOTS = 10
3131
MAX_WORKER_PROCESSES = 10
3232
WAL_KEEP_SEGMENTS = 20
33+
WAL_KEEP_SIZE = 320
3334
MAX_WAL_SENDERS = 10
3435

3536
# logical replication settings

Diff for: testgres/node.py

+8-3
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)