diff options
Diffstat (limited to 'src/test/recovery/t/005_replay_delay.pl')
-rw-r--r-- | src/test/recovery/t/005_replay_delay.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/recovery/t/005_replay_delay.pl b/src/test/recovery/t/005_replay_delay.pl index cd9e8f5c12f..4185f58e0d8 100644 --- a/src/test/recovery/t/005_replay_delay.pl +++ b/src/test/recovery/t/005_replay_delay.pl @@ -42,7 +42,7 @@ $node_master->safe_psql('postgres', # Now wait for replay to complete on standby. We're done waiting when the # slave has replayed up to the previously saved master LSN. my $until_lsn = - $node_master->safe_psql('postgres', "SELECT pg_current_wal_location()"); + $node_master->safe_psql('postgres', "SELECT pg_current_wal_lsn()"); my $remaining = 90; while ($remaining-- > 0) @@ -50,7 +50,7 @@ while ($remaining-- > 0) # Done waiting? my $replay_status = $node_standby->safe_psql('postgres', - "SELECT (pg_last_wal_replay_location() - '$until_lsn'::pg_lsn) >= 0" + "SELECT (pg_last_wal_replay_lsn() - '$until_lsn'::pg_lsn) >= 0" ); last if $replay_status eq 't'; |