Add macros for ReorderBufferTXN toptxn.

Amit Kapila <akapila@postgresql.org>

Commit: e709596b25bd184d6566dfff240e3f672a548afe
Author: Amit Kapila <akapila@postgresql.org>
Date: 2023-03-17T02:59:41Z
Releases: 16.0
Add macros for ReorderBufferTXN toptxn.

Currently, there are quite a few places in reorderbuffer.c that tries to
access top-transaction for a subtransaction. This makes the code to access
top-transaction consistent and easier to follow.

Author: Peter Smith
Reviewed-by: Vignesh C, Sawada Masahiko
Discussion: https://postgr.es/m/CAHut+PuCznOyTqBQwjRUu-ibG-=KHyCv-0FTcWQtZUdR88umfg@mail.gmail.com

Files

Discussion