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

Add promote() method#47

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
funbringer merged 7 commits intopostgrespro:masterfromzilder:promote
Jun 4, 2018
Merged
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
Use pg_is_in_recovery() instead of relying on transaction_read_only G…
…UC variable in promote() func
  • Loading branch information
@zilder
zilder committedJun 4, 2018
commitf5fe963b0966e33d7e4da3fac35a93f14c3872f5
4 changes: 2 additions & 2 deletionstestgres/node.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -713,11 +713,11 @@ def promote(self, dbname=None, username=None):
# for versions below 10 `promote` is asynchronous so we need to wait
# until it actually becomes writable
if self._pg_version < '10':
check_query = "SHOW transaction_read_only"
check_query = "SELECT pg_is_in_recovery()"

self.poll_query_until(
query=check_query,
expected="off",
expected=False,
dbname=dbname,
username=username,
max_attempts=0) # infinite
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp