Add macros for ReorderBufferTXN toptxn.
Amit Kapila <akapila@postgresql.org>
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
| Path | Change | +/− |
|---|---|---|
| contrib/test_decoding/test_decoding.c | modified | +2 −2 |
| src/backend/replication/logical/reorderbuffer.c | modified | +18 −28 |
| src/backend/replication/pgoutput/pgoutput.c | modified | +3 −3 |
| src/include/replication/reorderbuffer.h | modified | +18 −0 |
Discussion
- Add macros for ReorderBufferTXN toptxn 16 messages · 2023-03-09 → 2023-03-20