Another commit because flake8 is a huge waste of time.

This commit is contained in:
Josh Berkus
2015-09-03 21:10:30 -07:00
parent 5f4a9ffabb
commit bdb1454e35
+3 -3
View File
@@ -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()