@@ -2435,7 +2435,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
2435
2435
<structfield>active</structfield> <type>bool</type>
2436
2436
</para>
2437
2437
<para>
2438
- True if this slot is currently actively being used
2438
+ True if this slot is currently being streamed
2439
2439
</para></entry>
2440
2440
</row>
2441
2441
@@ -2444,9 +2444,8 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
2444
2444
<structfield>active_pid</structfield> <type>int4</type>
2445
2445
</para>
2446
2446
<para>
2447
- The process ID of the session using this slot if the slot
2448
- is currently actively being used. <literal>NULL</literal> if
2449
- inactive.
2447
+ The process ID of the session streaming data for this slot.
2448
+ <literal>NULL</literal> if inactive.
2450
2449
</para></entry>
2451
2450
</row>
2452
2451
@@ -2566,15 +2565,18 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
2566
2565
<structfield>inactive_since</structfield> <type>timestamptz</type>
2567
2566
</para>
2568
2567
<para>
2569
- The time since the slot has become inactive.
2570
- <literal>NULL</literal> if the slot is currently being used .
2568
+ The time when the slot became inactive. <literal>NULL</literal> if the
2569
+ slot is currently being streamed .
2571
2570
Note that for slots on the standby that are being synced from a
2572
2571
primary server (whose <structfield>synced</structfield> field is
2573
- <literal>true</literal>), the
2574
- <structfield>inactive_since</structfield> indicates the last
2575
- synchronization (see
2576
- <xref linkend="logicaldecoding-replication-slots-synchronization"/>)
2577
- time.
2572
+ <literal>true</literal>), the <structfield>inactive_since</structfield>
2573
+ indicates the time when slot synchronization (see <xref
2574
+ linkend="logicaldecoding-replication-slots-synchronization"/>)
2575
+ was most recently stopped. <literal>NULL</literal> if the slot
2576
+ has always been synchronized. On standby, this is useful for slots
2577
+ that are being synced from a primary server (whose
2578
+ <structfield>synced</structfield> field is <literal>true</literal>)
2579
+ so they know when the slot stopped being synchronized.
2578
2580
</para></entry>
2579
2581
</row>
2580
2582
0 commit comments