Add resource statistics reporting to ANALYZE VERBOSE.
authorMasahiko Sawada
Wed, 14 Aug 2024 02:23:56 +0000 (19:23 -0700)
committerMasahiko Sawada
Wed, 14 Aug 2024 02:23:56 +0000 (19:23 -0700)
commit4c1b4cdb86a7a3a97349bb636f34a259abe0187d
treee849e1c2bf18cd7ff26a9b2a2e904aca5997182a
parentc584781bcc686ebc0b3139e3e166607537336f69
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
src/backend/commands/analyze.c