pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathandbossart@gmail.com>
To: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: refactor some protocol message sending in walsender and basebackup
Date: Fri, 1 Jul 2022 14:36:46 -0700
Message-ID: <20220701213646.GA582729@nathanxps13> (raw)
In-Reply-To: <7e4fdbdc-699c-4cd0-115d-fb78a957fc22@enterprisedb.com>
References: <7e4fdbdc-699c-4cd0-115d-fb78a957fc22@enterprisedb.com>

On Thu, Jun 23, 2022 at 04:36:36PM +0200, Peter Eisentraut wrote:
> 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.

All 4 patches look reasonable to me.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com





view thread (3+ messages)  latest in thread

Message-ID: <20220701213646.GA582729@nathanxps13>
Permalink:  ../20220701213646.GA582729@nathanxps13/
Also on:    postgresql.org/message-id/20220701213646.GA582729@nathanxps13

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: nathandbossart@gmail.com, peter.eisentraut@enterprisedb.com
  Subject: Re: refactor some protocol message sending in walsender and basebackup
  In-Reply-To: <20220701213646.GA582729@nathanxps13>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox