Change the attribute name in pg_stat_replication_slots view.
authorAmit Kapila <akapila@postgresql.org>
Tue, 20 Oct 2020 04:54:36 +0000 (10:24 +0530)
committerAmit Kapila <akapila@postgresql.org>
Tue, 20 Oct 2020 04:54:36 +0000 (10:24 +0530)
commit03d51b776d88badbeb4452c1ab452feb78dce36a
treeb5003547bd841ccb99cf39536c95ac241224a6a3
parent8e5793ab60bba65ffaa0f2237b39c9580d8972c7
Change the attribute name in pg_stat_replication_slots view.

Change the attribute 'name' to 'slot_name' in pg_stat_replication_slots
view to make it clear and that way we will be consistent with the other
places like pg_stat_wal_receiver view where we display the same attribute.

In the passing, fix the typo in one of the macros in the related code.

Bump the catversion as we have modified the name in the catalog as well.

Reported-by: Noriyoshi Shinoda
Author: Noriyoshi Shinoda
Reviewed-by: Sawada Masahiko and Amit Kapila
Discussion: https://postgr.es/m/CA+fd4k5_pPAYRTDrO2PbtTOe0eHQpBvuqmCr8ic39uTNmR49Eg@mail.gmail.com
contrib/test_decoding/expected/stats.out
contrib/test_decoding/sql/stats.sql
doc/src/sgml/monitoring.sgml
src/backend/catalog/system_views.sql
src/backend/utils/adt/pgstatfuncs.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat
src/test/regress/expected/rules.out