mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
Another commit because flake8 is a huge waste of time.
This commit is contained in:
@@ -256,9 +256,9 @@ class Postgresql:
|
||||
member_conn = psycopg2.connect(**r)
|
||||
member_conn.autocommit = True
|
||||
member_cursor = member_conn.cursor()
|
||||
member_cursor.execute("""SELECT pg_is_in_recovery(),
|
||||
%s - pg_xlog_location_diff(pg_last_xlog_replay_location(),'0/0000000')""",
|
||||
(self.xlog_position(), ))
|
||||
member_cursor.execute("""SELECT pg_is_in_recovery(),
|
||||
%s - pg_xlog_location_diff(pg_last_xlog_replay_location(),'0/0000000')""",
|
||||
(self.xlog_position(), ))
|
||||
row = member_cursor.fetchone()
|
||||
member_cursor.close()
|
||||
member_conn.close()
|
||||
|
||||
Reference in New Issue
Block a user