From 63463a1e3dcc974c3acb47f4ce1db1e0f37cd408 Mon Sep 17 00:00:00 2001 From: anastasia Date: Mon, 19 Oct 2020 17:20:44 +0300 Subject: [PATCH] Add PostgreSQL 13 support --- .travis.yml | 1 + testgres/consts.py | 1 + testgres/node.py | 11 ++++++++--- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0aa9e9fa..0e7a3701 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,7 @@ env: - PYTHON_VERSION=2 PG_VERSION=9.6 - PYTHON_VERSION=2 PG_VERSION=9.5 - PYTHON_VERSION=2 PG_VERSION=9.4 + - PYTHON_VERSION=3 PG_VERSION=13 - PYTHON_VERSION=3 PG_VERSION=12 - PYTHON_VERSION=3 PG_VERSION=11 - PYTHON_VERSION=3 PG_VERSION=10 diff --git a/testgres/consts.py b/testgres/consts.py index dcde873a..98c84af6 100644 --- a/testgres/consts.py +++ b/testgres/consts.py @@ -30,6 +30,7 @@ MAX_REPLICATION_SLOTS = 10 MAX_WORKER_PROCESSES = 10 WAL_KEEP_SEGMENTS = 20 +WAL_KEEP_SIZE = 320 MAX_WAL_SENDERS = 10 # logical replication settings diff --git a/testgres/node.py b/testgres/node.py index 01b3ad56..81866e89 100644 --- a/testgres/node.py +++ b/testgres/node.py @@ -519,9 +519,14 @@ def get_auth_method(t): # select a proper wal_level for PostgreSQL wal_level = 'replica' if self._pg_version >= '9.6' else 'hot_standby' - self.append_conf(hot_standby=True, - wal_keep_segments=WAL_KEEP_SEGMENTS, - wal_level=wal_level) # yapf: disable + if self._pg_version < '13': + self.append_conf(hot_standby=True, + wal_keep_segments=WAL_KEEP_SEGMENTS, + wal_level=wal_level) # yapf: disable + else: + self.append_conf(hot_standby=True, + wal_keep_size=WAL_KEEP_SIZE, + wal_level=wal_level) # yapf: disable # logical replication if allow_logical: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy