From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use NameData datatype for slotname in stats.
Date: Wed, 14 Apr 2021 03:26:41 +0000
Message-ID: <E1lWWAr-0004fc-Ho@gemulon.postgresql.org> (raw)
Use NameData datatype for slotname in stats.
This will make it consistent with the other usage of slotname in the code.
In the passing, change pgstat_report_replslot signature to use a structure
rather than multiple parameters.
Reported-by: Andres Freund
Author: Vignesh C
Reviewed-by: Sawada Masahiko, Amit Kapila
Discussion: https://postgr.es/m/20210319185247.ldebgpdaxsowiflw@alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/cca57c1d9bf7eeba5b81115e0b82651cf3d8e4ea
Modified Files
--------------
src/backend/postmaster/pgstat.c | 32 +++++++++++++++----------------
src/backend/replication/logical/logical.c | 13 ++++++++++---
src/backend/replication/slot.c | 7 ++++++-
src/backend/utils/adt/pgstatfuncs.c | 2 +-
src/include/pgstat.h | 11 ++++-------
5 files changed, 36 insertions(+), 29 deletions(-)
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: Use NameData datatype for slotname in stats.
In-Reply-To: <E1lWWAr-0004fc-Ho@gemulon.postgresql.org>
References: <E1lWWAr-0004fc-Ho@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