Apply last revision of recovery patch
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 26 Feb 2016 19:22:53 +0000 (16:22 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 26 Feb 2016 19:22:53 +0000 (16:22 -0300)
I applied the previous-to-last revision of MichaĆ«l's submitted patch
instead of the last; these two tweaks pointed out by Craig were left out
of the previous commit by accident.

src/test/perl/PostgresNode.pm
src/test/recovery/t/001_stream_rep.pl

index 1561de50c43b08417e0f66ef5e3229086f32cac0..a8e6f0c3bbf5fa4d2771d3114a0c7682d562ea18 100644 (file)
@@ -474,7 +474,7 @@ Streaming replication can be enabled on this node by passing the keyword
 parameter has_streaming => 1. This is disabled by default.
 
 Restoring WAL segments from archives using restore_command can be enabled
-by passiong the keyword parameter has_restoring => 1. This is disabled by
+by passing the keyword parameter has_restoring => 1. This is disabled by
 default.
 
 The backup is copied, leaving the original unmodified. pg_hba.conf is
index 50dfc0815c7e802ba0947e94ff0ef4a6543ccc4e..7dcca65374d771280bd5ec8de0c712570312be87 100644 (file)
@@ -38,11 +38,11 @@ $node_master->psql('postgres',
 my $applname_1 = $node_standby_1->name;
 my $applname_2 = $node_standby_2->name;
 my $caughtup_query =
-"SELECT pg_current_xlog_location() = write_location FROM pg_stat_replication WHERE application_name = '$applname_1';";
+"SELECT pg_current_xlog_location() <= write_location FROM pg_stat_replication WHERE application_name = '$applname_1';";
 $node_master->poll_query_until('postgres', $caughtup_query)
   or die "Timed out while waiting for standby 1 to catch up";
 $caughtup_query =
-"SELECT pg_last_xlog_replay_location() = write_location FROM pg_stat_replication WHERE application_name = '$applname_2';";
+"SELECT pg_last_xlog_replay_location() <= write_location FROM pg_stat_replication WHERE application_name = '$applname_2';";
 $node_standby_1->poll_query_until('postgres', $caughtup_query)
   or die "Timed out while waiting for standby 2 to catch up";