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-0ftcwqtzudr88u...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/e709596b25bd184d6566dfff240e3f672a548afe Modified Files -------------- contrib/test_decoding/test_decoding.c | 4 +-- src/backend/replication/logical/reorderbuffer.c | 46 ++++++++++--------------- src/backend/replication/pgoutput/pgoutput.c | 6 ++-- src/include/replication/reorderbuffer.h | 18 ++++++++++ 4 files changed, 41 insertions(+), 33 deletions(-)