pgsql: Refactor sending of DataRow messages in replication protocol

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Refactor sending of DataRow messages in replication protocol
Date: 2022-07-06 06:48:58
Message-ID: E1o8yqG-001RPJ-Ul@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Refactor sending of DataRow messages in replication protocol

Some routines open-coded the construction of DataRow messages. Use
TupOutputState struct and associated functions instead, which was
already done in some places.

SendTimeLineHistory() is a bit more complicated and isn't converted by
this.

Reviewed-by: Nathan Bossart <nathandbossart(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/7e4fdbdc-699c-4cd0-115d-fb78a957fc22(at)enterprisedb(dot)com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/16d52fc89dbe8394ed318521e076f08fd2e4bf8c

Modified Files
--------------
src/backend/access/common/printsimple.c | 11 +++++
src/backend/replication/basebackup_copy.c | 69 ++++++++++---------------------
2 files changed, 33 insertions(+), 47 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2022-07-06 07:40:58 pgsql: Remove size increase in ExprEvalStep caused by hashed saops
Previous Message Peter Eisentraut 2022-07-06 05:44:37 pgsql: Unify DLSUFFIX on Darwin