pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Pass Size as a 2nd argument for snprintf() in tablesync.c.
Date: Wed, 21 Sep 2022 05:02:56 +0000
Message-ID: <E1oarsu-001IW5-1R@gemulon.postgresql.org> (raw)

Pass Size as a 2nd argument for snprintf() in tablesync.c.

Previously the following snprintf() wrappers:

* ReplicationSlotNameForTablesync()
* ReplicationOriginNameForTablesync()

... used int as a second argument of snprintf() while the actual type of it
is size_t. Although it doesn't fail at present better replace it with Size
for consistency with the rest of the system.

Author: Aleksander Alekseev
Reviewed-By: Peter Smith
Discussion: https://postgr.es/m/CAHut%2BPsa8hhfSE6ozUK-ih7GkQziAVAf4f3bqiXEj2nQiu-43g%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a932824dfe068f563e9abb9264f6e071f23e67ae

Modified Files
--------------
src/backend/replication/logical/tablesync.c | 4 ++--
src/include/replication/slot.h              | 2 +-
src/include/replication/worker_internal.h   | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)



Message-ID: <E1oarsu-001IW5-1R@gemulon.postgresql.org>
Permalink:  ../E1oarsu-001IW5-1R@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oarsu-001IW5-1R@gemulon.postgresql.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: akapila@postgresql.org
  Subject: Re: pgsql: Pass Size as a 2nd argument for snprintf() in tablesync.c.
  In-Reply-To: <E1oarsu-001IW5-1R@gemulon.postgresql.org>
  References: <E1oarsu-001IW5-1R@gemulon.postgresql.org>

* 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