@@ -2397,7 +2397,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
2397
2397
<structfield>active</structfield> <type>bool</type>
2398
2398
</para>
2399
2399
<para>
2400
- True if this slot is currently actively being used
2400
+ True if this slot is currently being streamed
2401
2401
</para></entry>
2402
2402
</row>
2403
2403
@@ -2406,9 +2406,8 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
2406
2406
<structfield>active_pid</structfield> <type>int4</type>
2407
2407
</para>
2408
2408
<para>
2409
- The process ID of the session using this slot if the slot
2410
- is currently actively being used. <literal>NULL</literal> if
2411
- inactive.
2409
+ The process ID of the session streaming data for this slot.
2410
+ <literal>NULL</literal> if inactive.
2412
2411
</para></entry>
2413
2412
</row>
2414
2413
@@ -2528,15 +2527,18 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
2528
2527
<structfield>inactive_since</structfield> <type>timestamptz</type>
2529
2528
</para>
2530
2529
<para>
2531
- The time since the slot has become inactive.
2532
- <literal>NULL</literal> if the slot is currently being used .
2530
+ The time when the slot became inactive. <literal>NULL</literal> if the
2531
+ slot is currently being streamed .
2533
2532
Note that for slots on the standby that are being synced from a
2534
2533
primary server (whose <structfield>synced</structfield> field is
2535
- <literal>true</literal>), the
2536
- <structfield>inactive_since</structfield> indicates the last
2537
- synchronization (see
2538
- <xref linkend="logicaldecoding-replication-slots-synchronization"/>)
2539
- time.
2534
+ <literal>true</literal>), the <structfield>inactive_since</structfield>
2535
+ indicates the time when slot synchronization (see <xref
2536
+ linkend="logicaldecoding-replication-slots-synchronization"/>)
2537
+ was most recently stopped. <literal>NULL</literal> if the slot
2538
+ has always been synchronized. On standby, this is useful for slots
2539
+ that are being synced from a primary server (whose
2540
+ <structfield>synced</structfield> field is <literal>true</literal>)
2541
+ so they know when the slot stopped being synchronized.
2540
2542
</para></entry>
2541
2543
</row>
2542
2544
0 commit comments