Re: [PATCH] TRUNCATE's reset of n_live_tup/n_dead_tup is lost

From: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
To: Virender Singla <virender(dot)cse(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: [PATCH] TRUNCATE's reset of n_live_tup/n_dead_tup is lost
Date: 2026-11-23 11:43:56
Message-ID: awQm/NpiHwXI5XFl@bdtpg
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On Mon, Nov 23, 2026 at 04:49:30PM +0530, Virender Singla wrote:
>
> I saw your thread from earlier today [1] touching the same area. It looks
> like this case is not covered by your patch series. Assuming this is
> an issue, feel
> free to add this into your patches, or we can handle it separately here. I
> haven't rebased on top of your changes yet.

Thanks for the report and the patch!

IIUC, your report is the same issue already addressed by Ilya's v2-0001 in [1].

This issue is independent from my series, which preserves the pre and post
TRUNCATE n_ins_since_vacuum and n_dead_tup counts through aborts, subtransactions
and 2PC.

I think those fixes should remain in separate patch series and threads.

[1]: https://postgr.es/m/1DC9D815-8754-4A76-B2B1-99C1A614A55A@localhost.localdomain

Regards,

--
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Previous Message Jakub Wartak 2026-11-23 11:20:56 Re: [RFC PATCH v1] On-demand WAL replay: accept connections before crash recovery has applied the WAL