Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0c3aff7

Browse files
committed
Fix tests.pgpro2068.BugTest.test_minrecpoint_on_replica on 9.6
1 parent bd81f7f commit 0c3aff7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/pgpro2068.py

Lines 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)