Change last_inactive_time to inactive_since in pg_replication_slots.
authorAmit Kapila <akapila@postgresql.org>
Wed, 27 Mar 2024 03:57:44 +0000 (09:27 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 27 Mar 2024 03:57:44 +0000 (09:27 +0530)
commit6d49c8d4b4f4a20eb5b4c501d78cf894fa13c0ea
tree67eaaf5d79dea7aede098b19222897923894be78
parentbb952c8c8b13279eca039499249cb5dc60991603
Change last_inactive_time to inactive_since in pg_replication_slots.

Commit a11f330b55 added last_inactive_time to show the last time the slot
was inactive. But, it tells the last time that a currently-inactive slot
previously *WAS* active. This could be unclear, so we changed the name to
inactive_since.

Reported-by: Robert Haas
Author: Bharath Rupireddy
Reviewed-by: Bertrand Drouvot, Shveta Malik, Amit Kapila
Discussion: https://postgr.es/m/CA+Tgmob_Ta-t2ty8QrKHBGnNLrf4ZYcwhGHGFsuUoFrAEDw4sA@mail.gmail.com
Discussion: https://postgr.es/m/CALj2ACUXS0SfbHzsX8bqo+7CZhocsV52Kiu7OWGb5HVPAmJqnA@mail.gmail.com
doc/src/sgml/system-views.sgml
src/backend/catalog/system_views.sql
src/backend/replication/slot.c
src/backend/replication/slotfuncs.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat
src/include/replication/slot.h
src/test/recovery/t/019_replslot_limit.pl
src/test/regress/expected/rules.out