Re: DOCS - pg_replication_slot . Fix the 'inactive_since' description
Nisha Moond <nisha.moond412@gmail.com>
From: Nisha Moond <nisha.moond412@gmail.com>
To: Bruce Momjian <bruce@momjian.us>
Cc: Peter Smith <smithpb2250@gmail.com>,
"David G. Johnston" <david.g.johnston@gmail.com>, Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>,
Kyotaro Horiguchi <horikyota.ntt@gmail.com>, Amit Kapila <amit.kapila16@gmail.com>, shveta.malik@gmail.com, pgsql-hackers@lists.postgresql.org
Date: 2024-11-14T06:42:33Z
Lists: pgsql-hackers
On Thu, Oct 31, 2024 at 11:05 PM Bruce Momjian <bruce@momjian.us> wrote: > > > Yes, all good suggestions, updated patch attached. > Few comments for the changes under "inactive_since" description: + The time when slot synchronization (see <xref + linkend="logicaldecoding-replication-slots-synchronization"/>) + was most recently stopped. <literal>NULL</literal> if the slot + has always been synchronized. This is useful for slots on the + standby that are being synced from a primary server (whose + <structfield>synced</structfield> field is <literal>true</literal>) + so they know when the slot stopped being synchronized. 1) To me, the above lines give the impression that "inactive_since" is only meaningful for the logical slots which are being synchronized from primary to standby, which is not correct. On a primary node, this column gives the timestamp when any slot becomes inactive. By removing the line - - The time since the slot has become inactive. I feel we lost the description that explains this column’s purpose on primary nodes. I suggest explicitly clarifying the inactive_since column's meaning on primary nodes as well. 2) Can we add more details to it for column's behavior on restarting a node, something like - "For the inactive slots, restarting a node resets the "inactive_since" time to the node's start time. " -- Thanks, Nisha
Commits
-
Doc: Clarify the `inactive_since` field description.
- d05a387d9d78 18.0 landed
- 5f46439d5931 17.3 landed
-
Change last_inactive_time to inactive_since in pg_replication_slots.
- 6d49c8d4b4f4 17.0 cited