| From: | SATYANARAYANA NARLAPURAM <satyanarlapuram(at)gmail(dot)com> |
|---|---|
| To: | Lakshmi N <lakshmin(dot)jhs(at)gmail(dot)com> |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: log XLogPrefetch stats at end of recovery |
| Date: | 2026-03-21 08:15:54 |
| Message-ID: | CAHg+QDfLh-yb+OacN6qPYF6H3SPDmVJUiors7vkSMq4yxfhNrA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
On Wed, Mar 18, 2026 at 12:18 AM Lakshmi N <lakshmin(dot)jhs(at)gmail(dot)com> wrote:
> Hi,
>
> While investigating a long recovery, I noticed that XLogPrefetch stats
> were not logged at the end of recovery. This log message will be useful to
> understand how effective XLogPrefetch was during recovery. Adding a patch
> to address this.
>
Applied this patch and validated the log message. This log message appears
to be useful to me, particularly while doing fleet wide analysis. I am
wondering if we can periodically log this in standby mode as well, not just
before promoting?
2026-03-20 23:33:13.756 PDT [2265441] LOG: XLogPrefetcher stats:
prefetch=14, hit=6, skip_init=5, skip_new=28, skip_fpw=18, skip_rep=996
Thanks,
Satya
| From | Date | Subject | |
|---|---|---|---|
| Next Message | jian he | 2026-03-21 08:16:07 | Re: CAST(... ON DEFAULT) - WIP build on top of Error-Safe User Functions |
| Previous Message | Richard Guo | 2026-03-21 08:01:13 | Re: Remove inner joins based on foreign keys |