On Fri, Mar 05, 2021 at 10:43:51PM +0900, Masahiko Sawada wrote:
>
> I think we can use n_live_tup for that but since it's an estimation
> value it doesn't necessarily have the same result as DELETE and I'm
> not sure it's reliable.
I agree that it's not 100% reliable, but in my experience those estimates are
quite good and of the same order of magnitude, which should be enough for this
use case. It will be in any case better that simply keeping the old value, and
I doubt that we can do better anyway.