Re: The description for pg_replication_slots.restart_lsn - Mailing list pgsql-docs

From Fujii Masao
Subject Re: The description for pg_replication_slots.restart_lsn
Date
Msg-id d6517043-606c-a953-bc66-bca101c5a604@oss.nttdata.com
Whole thread Raw
In response to The description for pg_replication_slots.restart_lsn  (Fujii Masao <masao.fujii@oss.nttdata.com>)
List pgsql-docs

On 2020/06/17 23:47, Fujii Masao wrote:
> 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.

Barring any objection, I will commit this patch.

Regards,


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



pgsql-docs by date:

Previous
From: PG Doc comments form
Date:
Subject: listing roles
Next
From: Alvaro Herrera
Date:
Subject: Re: The description for pg_replication_slots.restart_lsn