From: | Amit Kapila <akapila(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Add macros for ReorderBufferTXN toptxn. |
Date: | 2023-03-17 03:25:04 |
Message-ID: | E1pd0iG-003vef-CH@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2023-03-17 06:35:02 | pgsql: tests: Prevent syslog activity by slapd, take 2 |
Previous Message | David Rowley | 2023-03-17 02:51:23 | pgsql: Fix incorrect logic for determining safe WindowAgg run condition |