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

Appearance settings

Commit 0c3aff7

Browse filesBrowse files
committed
Fix tests.pgpro2068.BugTest.test_minrecpoint_on_replica on 9.6
1 parent bd81f7f commit 0c3aff7
Copy full SHA for 0c3aff7

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎tests/pgpro2068.py

Copy file name to clipboardExpand all lines: tests/pgpro2068.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def test_minrecpoint_on_replica(self):
144144
DO
145145
$$
146146
relations = plpy.execute("select class.oid from pg_class class WHERE class.relkind IN ('r', 'i', 't', 'm') and class.relpersistence = 'p'")
147-
current_xlog_lsn = plpy.execute("SELECT min_recovery_end_lsn as lsn FROM pg_control_recovery()")[0]['lsn']
147+
current_xlog_lsn = plpy.execute("SELECT min_recovery_end_location as lsn FROM pg_control_recovery()")[0]['lsn']
148148
plpy.notice('CURRENT LSN: {0}'.format(current_xlog_lsn))
149149
found_corruption = False
150150
for relation in relations:
@@ -158,7 +158,7 @@ def test_minrecpoint_on_replica(self):
158158
found_corruption = True
159159
if found_corruption:
160160
plpy.error('Found Corruption')
161-
$$ LANGUAGE plpythonu;
161+
$$ LANGUAGE plpython3u;
162162
'''
163163
else:
164164
script = '''

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.