Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3124b0f

Browse files
authored
Merge pull request#55 from postgrespro/support_rel13
Add PostgreSQL 13 support
2 parents76ea566 +63463a1 commit3124b0f

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

‎.travis.yml

Lines changed: 1 addition & 0 deletions
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

‎testgres/consts.py

Lines changed: 1 addition & 0 deletions
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

‎testgres/node.py

Lines changed: 8 additions & 3 deletions
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'ifself._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+
ifself._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
ifallow_logical:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp