The description for pg_replication_slots.restart_lsn

Fujii Masao <masao.fujii@oss.nttdata.com>

From: Fujii Masao <masao.fujii@oss.nttdata.com>
To: pgsql-docs@lists.postgresql.org
Date: 2020-06-17T14:47:28Z
Lists: pgsql-docs

Attachments

Hi,

The document explains that restart_lsn column in pg_replication_slots view is:

     The address (LSN) of oldest WAL which still might be required by
     the consumer of this slot and thus won't be automatically removed
     during checkpoints.

But the latter part is not true in v13 thanks to max_slot_wal_keep_size.
I think that we need to update it as follows. Thought?

     The address (LSN) of oldest WAL which still might be required by
     the consumer of this slot and thus won't be automatically removed
     during checkpoints unless this LSN gets behind more than
     max_slot_wal_keep_size from the current LSN.

Patch attached.

Regards,
-- 
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION

Commits

  1. doc: Correct description of restart_lsn in pg_replication_slots