| From: | Ishjaap Singh <ishjaap(dot)singh07(at)gmail(dot)com> |
|---|---|
| To: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
| Cc: | Tatsuya Kawata <kawatatatsuya0913(at)gmail(dot)com>, "samimseih(at)gmail(dot)com" <samimseih(at)gmail(dot)com>, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: [PATCH] Add sampling statistics to autoanalyze log output |
| Date: | 2026-12-06 01:38:01 |
| Message-ID: | CA+Y2Bmeisk4g9fJ5q-F6tG0t=QYHyXRX=9Q+12Y=TnukTQBx_Q@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
I tested v5 on master (8d90516d76d) on a plain table, partitions, and
two inheritance parents, one of them with a file_fdw child.
When the completion log is emitted, it includes the heap sampling lines.
The inheritance pass is labelled "inheritance tree", so the two passes
over a parent are easy to tell apart. With debug2 enabled as well, the
sampling lines still appear only once.
With log_autoanalyze_min_duration = -1 and debug2 enabled, I saw one
core sampling report per analyze pass. The file_fdw message still
appeared separately. At the default log level, I saw no autoanalyze or
sampling messages with the duration set to -1 or '1h', just as on
master.
ANALYZE VERBOSE printed the same sampling lines as master. With
track_cost_delay_timing enabled, the delay time appeared after the
sampling lines in the completion log. make check passed.
One small thing: the DEBUG2 message ends with an empty line, because
each buffered line ends with '\n' and the format puts %s last. Dropping
the trailing newline before the ereport() would fix it.
Otherwise v5 looks good to me.
Regards,
Ishjaap Singh
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Roberto Mello | 2026-12-06 02:09:05 | Re: pg_dump writes a subscription's default slot name, which can't be restored |
| Previous Message | Tatsuo Ishii | 2026-12-06 01:15:57 | Re: Row pattern recognition |