Re: definition of CalculateMaxmumSafeLSN - Mailing list pgsql-hackers

From Kyotaro Horiguchi
Subject Re: definition of CalculateMaxmumSafeLSN
Date
Msg-id 20220301.101103.2231760568010660101.horikyota.ntt@gmail.com
Whole thread Raw
In response to definition of CalculateMaxmumSafeLSN  (Sergei Kornilov <sk@zsrv.org>)
Responses Re: definition of CalculateMaxmumSafeLSN
List pgsql-hackers
At Mon, 28 Feb 2022 17:01:10 +0300, Sergei Kornilov <sk@zsrv.org> wrote in 
> Hello
> I just spotted in src/include/access/xlog.h:
> extern XLogRecPtr CalculateMaxmumSafeLSN(void);
> 
> This function doesn't seem to be used anywhere or even defined? "git grep CalculateMaxmumSafeLSN" shows only this
line.
> Was added in c6550776394e25c1620bc8258427c8f1d448080d "Allow users to limit storage reserved by replication slots"

Hmm.  I think I remember of that name. You're right, it is a function
that was once added during development of the commit but eventually
gone.

So it should be removed.

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center



pgsql-hackers by date:

Previous
From: Peter Smith
Date:
Subject: Re: Optionally automatically disable logical replication subscriptions on error
Next
From: Kyotaro Horiguchi
Date:
Subject: Re: Use "WAL segment" instead of "log segment" consistently in user-facing messages