refactor some protocol message sending in walsender and basebackup - Mailing list pgsql-hackers

From Peter Eisentraut
Subject refactor some protocol message sending in walsender and basebackup
Date
Msg-id 7e4fdbdc-699c-4cd0-115d-fb78a957fc22@enterprisedb.com
Whole thread Raw
Responses Re: refactor some protocol message sending in walsender and basebackup
List pgsql-hackers
Some places in walsender.c and basebackup_copy.c open-code the sending 
of RowDescription and DataRow protocol messages.  But there are already 
more compact and robust solutions available for this, using 
DestRemoteSimple and associated machinery, already in use in walsender.c.

The attached patches 0001 and 0002 are tiny bug fixes I found during this.

Patches 0003 and 0004 are the main refactorings.  They should probably 
be combined into one patch eventually, but this way the treatment of 
RowDescription and DataRow is presented separately.
Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: NAMEDATALEN increase because of non-latin languages
Next
From: Matthias van de Meent
Date:
Subject: Re: some aspects of our qsort might not be ideal