| From: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
|---|---|
| To: | Raja Sai pranav <rajasaipranav0(at)gmail(dot)com> |
| Cc: | zhong950419(at)gmail(dot)com, zsolt(dot)parragi(at)percona(dot)com, pgsql-hackers(at)lists(dot)postgresql(dot)org, manuelreyesbravo(at)gmail(dot)com, robertmhaas(at)gmail(dot)com, daria(dot)n(dot)lepikhova(at)gmail(dot)com, ayushtiwari(dot)slg01(at)gmail(dot)com |
| Subject: | Re: Assertion failure in WAL summarizer |
| Date: | 2026-12-04 11:15:27 |
| Message-ID: | CAHGQGwFtK5MGwP9V7Y6Bgur_ntZXDCWYLXG3tL2j0D3-oJupYQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Wed, Nov 18, 2026 at 10:04 PM Raja Sai pranav
<rajasaipranav0(at)gmail(dot)com> wrote:
>> In v6, 0002 also checks a summary that ends at the switch point.
Thanks for updating the patches!
+ if (summary_end_lsn < summary_start_lsn)
+ summary_end_lsn = summary_start_lsn;
Regarding 0001, doesn't this have essentially the same effect as removing
the assertion? In either case, seems no summary is written, and the next
iteration switches timelines.
If my understanding is right, isn't it clearer to simply remove the assertion?
Or, if we keep it, could we check the assertion only when a timeline change
is detected? This would still allow the assertion to catch case where
"end_of_summary_lsn < current_lsn" occurs without a timeline change.
Also 0001 adds 004_promote_past_target.pl, but 0003 changes the test's
setup and purpose. So isn't it better to add its final version directly in 0003
instead of adding it in 0001 and rewriting it in 0003?
Regarding 0002, could we use tliSwitchPoint(ws->tli, expectedTLEs, NULL)
in the summary-reading loop to check whether ws->end_lsn has reached
the switch point? This would eliminate past_switch_wslist and keep
the check close to the truncation handling.
Regards,
--
Fujii Masao
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Shuntian Jiao | 2026-12-04 11:19:07 | Re: reltuples kept decreasing with each autovacuum run Re: BUG #18773 |
| Previous Message | Yao Feng | 2026-12-04 11:14:00 | Re: [GSoC 2026] - B-tree Index Bloat Reduction - Approach & Questions |