mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Clean up misuse and nonuse of poll_query_until().
Several callers of PostgresNode::poll_query_until() neglected to check for failure; I do not think that's optional. Also, rewrite one place that had reinvented poll_query_until() for no very good reason.
This commit is contained in:
@ -55,7 +55,8 @@ $master->append_conf('postgresql.conf', 'track_commit_timestamp = off');
|
||||
$master->restart;
|
||||
|
||||
system_or_bail('pg_ctl', '-D', $standby->data_dir, 'promote');
|
||||
$standby->poll_query_until('postgres', "SELECT pg_is_in_recovery() <> true");
|
||||
$standby->poll_query_until('postgres', "SELECT NOT pg_is_in_recovery()")
|
||||
or die "standby never exited recovery";
|
||||
|
||||
$standby->safe_psql('postgres', "create table t11()");
|
||||
my $standby_ts = $standby->safe_psql('postgres',
|
||||
|
Reference in New Issue
Block a user