pgsql: Add resource statistics reporting to ANALYZE VERBOSE.

From: Masahiko Sawada <msawada(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add resource statistics reporting to ANALYZE VERBOSE.
Date: 2024-08-14 02:24:31
Message-ID: E1se3gd-0044Rj-20@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add resource statistics reporting to ANALYZE VERBOSE.

Previously, log_autovacuum_min_duration utilized dedicated code for
logging resource statistics, such as system and buffer usage during
autoanalyze. However, this logging functionality was not utilized by
ANALYZE VERBOSE.

This commit adds resource statistics reporting to ANALYZE VERBOSE by
reusing the same logging code as autoanalyze.

Author: Anthonin Bonnefoy
Reviewed-by: Masahiko Sawada
Discussion: https://postgr.es/m/CAO6_Xqr__kTTCLkftqS0qSCm-J7_xbRG3Ge2rWhucxQJMJhcRA%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4c1b4cdb86a7a3a97349bb636f34a259abe0187d

Modified Files
--------------
src/backend/commands/analyze.c | 29 ++++++++++++++++++++++-------
1 file changed, 22 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2024-08-14 03:06:20 pgsql: Harmonize MinGW CODESET lookup with MSVC.
Previous Message Alexander Korotkov 2024-08-14 02:13:21 Re: pgsql: Fix more holes with SLRU code in need of int64 for segment numbe