Refactor sending of RowDescription messages in replication protocol
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 4 Jul 2022 05:25:26 +0000 (07:25 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 4 Jul 2022 17:43:58 +0000 (19:43 +0200)
commit2ce648f750a91b04bfa371a8f966703a382fcc97
treee0a387cb4a3f6dc3acc0412c286a99eb9835d069
parentf10a025cfe97c1a341f636368e67af5ca644c5d8
Refactor sending of RowDescription messages in replication protocol

Some routines open-coded the construction of RowDescription messages.
Instead, we have support for doing this using tuple descriptors and
DestRemoteSimple, so use that instead.

Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/7e4fdbdc-699c-4cd0-115d-fb78a957fc22@enterprisedb.com
src/backend/access/common/tupdesc.c
src/backend/replication/basebackup_copy.c
src/backend/replication/walsender.c