| From: | Amit Kapila <akapila(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Use NameData datatype for slotname in stats. |
| Date: | 2021-04-14 03:26:41 |
| Message-ID: | E1lWWAr-0004fc-Ho@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2021-04-14 05:33:10 | pgsql: Simplify tests of postgres_fdw terminating connections |
| Previous Message | Tomas Vondra | 2021-04-13 22:53:59 | pgsql: Initialize t_self and t_tableOid in statext_expressions_load |