mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Correct behavior descriptions in comments, and correct a test name.
This commit is contained in:
@ -2252,7 +2252,7 @@ LogicalRepApplyLoop(XLogRecPtr last_received)
|
|||||||
bool requestReply = false;
|
bool requestReply = false;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check if time since last receive from standby has reached the
|
* Check if time since last receive from primary has reached the
|
||||||
* configured limit.
|
* configured limit.
|
||||||
*/
|
*/
|
||||||
if (wal_receiver_timeout > 0)
|
if (wal_receiver_timeout > 0)
|
||||||
|
@ -537,7 +537,7 @@ WalReceiverMain(void)
|
|||||||
bool requestReply = false;
|
bool requestReply = false;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check if time since last receive from standby has
|
* Check if time since last receive from primary has
|
||||||
* reached the configured limit.
|
* reached the configured limit.
|
||||||
*/
|
*/
|
||||||
if (wal_receiver_timeout > 0)
|
if (wal_receiver_timeout > 0)
|
||||||
|
@ -1368,7 +1368,7 @@ both B<stdout> and B<stderr> the results may be interleaved unpredictably.
|
|||||||
=item on_error_stop => 1
|
=item on_error_stop => 1
|
||||||
|
|
||||||
By default, the B<psql> method invokes the B<psql> program with ON_ERROR_STOP=1
|
By default, the B<psql> method invokes the B<psql> program with ON_ERROR_STOP=1
|
||||||
set, so SQL execution is stopped at the first error and exit code 2 is
|
set, so SQL execution is stopped at the first error and exit code 3 is
|
||||||
returned. Set B<on_error_stop> to 0 to ignore errors instead.
|
returned. Set B<on_error_stop> to 0 to ignore errors instead.
|
||||||
|
|
||||||
=item on_error_die => 0
|
=item on_error_die => 0
|
||||||
|
@ -145,7 +145,7 @@ $standby1->start;
|
|||||||
# that all segments needed are restored from the archives.
|
# that all segments needed are restored from the archives.
|
||||||
$standby1->poll_query_until('postgres',
|
$standby1->poll_query_until('postgres',
|
||||||
qq{ SELECT pg_wal_lsn_diff(pg_last_wal_replay_lsn(), '$primary_lsn') >= 0 }
|
qq{ SELECT pg_wal_lsn_diff(pg_last_wal_replay_lsn(), '$primary_lsn') >= 0 }
|
||||||
) or die "Timed out while waiting for xlog replay on standby2";
|
) or die "Timed out while waiting for xlog replay on standby1";
|
||||||
|
|
||||||
$standby1->safe_psql('postgres', q{CHECKPOINT});
|
$standby1->safe_psql('postgres', q{CHECKPOINT});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user