Hi,

Attached is v2 of the patch.

As suggested by Heikki, this version distinguishes the recovery states
using CAC_state instead of passing reachedConsistency separately
through BackendStartupData.

The patch restores CAC_NOTCONSISTENT and uses CAC_NOTHOTSTANDBY when
hot standby is enabled and consistency has been reached, but the
recovery snapshot is not yet ready.  The backend can therefore select
the appropriate DETAIL and HINT directly from CAC_state without
relying on inherited process-local state.

I tested this on Linux with both normal and EXEC_BACKEND builds, and
the tests passed. I have not tested it on Windows.

Please review and share your feedback.

Best Regards,
Nitin Jadhav
Microsoft

Attachment: v2-0001-fix-recovery-connection-detail-in-exec-backend-builds.patch
Description: Binary data

Reply via email to