Hi,

> > Quick (and possibly stupid) question. Is there a reason why
> > IsXLogLogicalInfoEnabled() is done before GetRunningTransactionLocks()
> > and LogAccessExclusiveLocks()? You said to put it right before
> > GetRunningTransactionData(), but these functions are done in-between.
> > It's harmless but it's clearer for me to put them before.
> Thanks for looking at the patch.
> 
> I don't see a functional difference in the order here and didn't intend
> to change the original placement, since IsLogicalDecodingEnabled() was
> already called at the beginning of LogStandbySnapshot() on HEAD, and
> none of the calls before inserting the xl_running_xacts record process
> interrupts (so this backend cannot absorb the barrier and let a
> concurrent activation complete in-between). The comment was only meant
> to remind future readers not to defer the check until ProcArrayLock is held.

Thanks for the detailed descriptions. I understood. v3 LGTM.

Best regards,
Hayato Kuroda
FUJITSU LIMITED

Reply via email to