Re: [HACKERS] Explicit relation name in VACUUM VERBOSE log - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [HACKERS] Explicit relation name in VACUUM VERBOSE log
Date
Msg-id 20170815034548.sbngtwlqymrpgi5f@alvherre.pgsql
Whole thread Raw
In response to Re: [HACKERS] Explicit relation name in VACUUM VERBOSE log  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: [HACKERS] Explicit relation name in VACUUM VERBOSE log  (Michael Paquier <michael.paquier@gmail.com>)
Re: [HACKERS] Explicit relation name in VACUUM VERBOSE log  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Michael Paquier wrote:
> On Tue, Aug 15, 2017 at 11:14 AM, Alvaro Herrera
> <alvherre@2ndquadrant.com> wrote:
> >> In vacuum_rel()@vacuum.c, there are a couple of logs that could be
> >> improved as well with the schema name.
> >
> > I agree that there's a lot of room for improvement there.  If I'm
> > allowed some scope creep, I'd say that gathering detailed vacuum info
> > from both autovacuum and user-invoked vacuum in a central place would be
> > very welcome.
> 
> Hm. I am not sure what you have in mind here.

I'm thinking that this data is useful to analyze as a stream of related
events, rather than as individual data points.  Grepping logs in order to
extract the numbers is lame and slow.  If you additionally have to mix
data that comes from vacuumdb with the autovacuum data from the server
log, that's much worse.  Maybe you remember this thread?
https://www.postgresql.org/message-id/flat/509300F7.5000803%402ndQuadrant.com
I'm thinking it would be damn convenient to have both user-invoked
VACUUM and autovacuum emit some sort of event data which is saved
somewhere for later analysis.

I *did* mention this was scope creep ;-)

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [HACKERS] reload-through-the-top-parent switch the partition table
Next
From: Michael Paquier
Date:
Subject: Re: [HACKERS] Explicit relation name in VACUUM VERBOSE log