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

Synchronous standbys#46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ildus merged 8 commits intopostgrespro:masterfromzilder:syncrep
Aug 8, 2019
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
Merge branch 'master' into syncrep
  • Loading branch information
@zilder
zilder committedJun 1, 2018
commit24b0e571107cbb11b34c517b2a726951df1dcc1d
3 changes: 1 addition & 2 deletionstestgres/node.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -68,7 +68,6 @@

from .standby import First


from .utils import \
PgVer, \
eprint, \
Expand DownExpand Up@@ -1066,7 +1065,7 @@ def set_synchronous_standbys(self, standbys):
master.restart()

"""
ifpg_version_ge('9.6'):
ifself._pg_version >='9.6':
if isinstance(standbys, Iterable):
standbys = First(1, standbys)
else:
Expand Down
14 changes: 11 additions & 3 deletionstests/test_simple.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -40,11 +40,19 @@
get_pg_config, \
get_pg_version

from testgres import \
First, \
Any

# NOTE: those are ugly imports
from testgres import bound_ports
from testgres.utils import pg_version_ge
from testgres.enums import ProcessType
from testgres.standby import First, Any
from testgres.utils import PgVer


def pg_version_ge(version):
cur_ver = PgVer(get_pg_version())
min_ver = PgVer(version)
return cur_ver >= min_ver


def util_exists(util):
Expand Down
You are viewing a condensed version of this merge commit. You can view thefull changes here.

[8]ページ先頭

©2009-2025 Movatter.jp