Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit85d0e66

Browse files
committed
Make recovery_target_action = pause work.
Previously even if recovery_target_action was set to pause andthe recovery target was reached, the recovery could never be paused.Because the setting of pause was *always* overridden with that ofshutdown unexpectedly. This override is valid and intentionalif hot_standby is not enabled because there is no way to resumethe paused recovery in this case and the setting of pause iscompletely useless. But not if hot_standby is enabled.This patch changes the code so that the setting of pause is overriddenwith that of shutdown only when hot_standby is not enabled.Bug reported by Andres Freund
1 parenta6a66bd commit85d0e66

File tree

1 file changed

+2
-2
lines changed
  • src/backend/access/transam

1 file changed

+2
-2
lines changed

‎src/backend/access/transam/xlog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5141,8 +5141,8 @@ readRecoveryCommandFile(void)
51415141
*/
51425142
if (recoveryTargetAction==RECOVERY_TARGET_ACTION_PAUSE&&
51435143
recoveryTargetActionSet&&
5144-
standbyState==STANDBY_DISABLED)
5145-
recoveryTargetAction=RECOVERY_TARGET_ACTION_SHUTDOWN;
5144+
!EnableHotStandby)
5145+
recoveryTargetAction=RECOVERY_TARGET_ACTION_SHUTDOWN;
51465146

51475147
/* Enable fetching from archive recovery area */
51485148
ArchiveRecoveryRequested= true;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp