Add macros for ReorderBufferTXN toptxn.
authorAmit Kapila <akapila@postgresql.org>
Fri, 17 Mar 2023 02:59:41 +0000 (08:29 +0530)
committerAmit Kapila <akapila@postgresql.org>
Fri, 17 Mar 2023 02:59:41 +0000 (08:29 +0530)
commite709596b25bd184d6566dfff240e3f672a548afe
tree054a77f8afd6dd62ec3db67c452e9b78a5436b56
parenteb7d043c9bbadb75a87385113c578f1b30e9d195
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
contrib/test_decoding/test_decoding.c
src/backend/replication/logical/reorderbuffer.c
src/backend/replication/pgoutput/pgoutput.c
src/include/replication/reorderbuffer.h