[HACKERS] log_autovacuum_min_duration doesn't log VACUUMs - Mailing list pgsql-hackers

From Simon Riggs
Subject [HACKERS] log_autovacuum_min_duration doesn't log VACUUMs
Date
Msg-id CANP8+jJVPemfsHSgZUBfCAcdfO6-jdSpWf08tgkm=jSknohGVg@mail.gmail.com
Whole thread Raw
Responses Re: [HACKERS] log_autovacuum_min_duration doesn't log VACUUMs  (Robert Haas <robertmhaas@gmail.com>)
Re: [HACKERS] log_autovacuum_min_duration doesn't log VACUUMs  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-hackers
I guess its fairly obvious in the title, but
log_autovacuum_min_duration doesn't log VACUUMs only autovacuums.

What isn't obvious is why that restruction is useful.

I say that it would be helpful to log all kinds of VACUUM, so we get
similar output from all methods of submission.

So, changes would be

1. Allow logging whether or not it is an autovacuum (attached)

2. Change name of parameter to ...
a) log_vacuum_min_duration
b) log_maintenance_min_duration and have it log CLUSTER, CREATE INDEX etc also
c) log_ddl_min_duration and just time any DDL that takes a long time
We could do any of those and they are all about as easy as one
another, though the last one will be a bigger patch, so a) might be
simpler.

The following patch implements (1), but not yet (2) to allow debate.

-- 
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Attachment

pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: [HACKERS] Reporting xmin from VACUUMs
Next
From: Kuntal Ghosh
Date:
Subject: Re: [HACKERS] Passing query string to workers