From 6e14fbb2d6e1b8ba679451a2c6893c01ccbc6e98 Mon Sep 17 00:00:00 2001 From: anastasia Date: Mon, 19 Oct 2020 17:31:19 +0300 Subject: [PATCH 1/2] Add PostgreSQL 13 support. Fix --- testgres/node.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testgres/node.py b/testgres/node.py index 81866e89..6bd17620 100644 --- a/testgres/node.py +++ b/testgres/node.py @@ -40,7 +40,8 @@ MAX_REPLICATION_SLOTS, \ MAX_WORKER_PROCESSES, \ MAX_WAL_SENDERS, \ - WAL_KEEP_SEGMENTS + WAL_KEEP_SEGMENTS, \ + WAL_KEEP_SIZE from .decorators import \ method_decorator, \ From d65ab69bd55771497e3d3a2e2b2f975c86e17e4b Mon Sep 17 00:00:00 2001 From: anastasia Date: Mon, 19 Oct 2020 17:53:48 +0300 Subject: [PATCH 2/2] fix code style to pass flake8 test --- testgres/node.py | 4 ++-- testgres/utils.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/testgres/node.py b/testgres/node.py index 6bd17620..5835541d 100644 --- a/testgres/node.py +++ b/testgres/node.py @@ -526,8 +526,8 @@ def get_auth_method(t): 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 + wal_keep_size=WAL_KEEP_SIZE, + wal_level=wal_level) # yapf: disable # logical replication if allow_logical: diff --git a/testgres/utils.py b/testgres/utils.py index 6c6f0e9b..47228e60 100644 --- a/testgres/utils.py +++ b/testgres/utils.py @@ -79,7 +79,7 @@ def execute_utility(args, logfile=None): if out: # comment-out lines - lines = ('# ' + l for l in out.splitlines(True)) + lines = ('# ' + line for line in out.splitlines(True)) file_out.write(u'\n') file_out.writelines(lines) 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