Re: Publish autovacuum informations - Mailing list pgsql-hackers

From Jim Nasby
Subject Re: Publish autovacuum informations
Date
Msg-id 56D77BB6.6080606@BlueTreble.com
Whole thread Raw
In response to Re: Publish autovacuum informations  (Julien Rouhaud <julien.rouhaud@dalibo.com>)
Responses Re: Publish autovacuum informations
List pgsql-hackers
On 3/2/16 10:48 AM, Julien Rouhaud wrote:
> Good point, I don't see a lot of information available with this hooks
> that a native system statistics couldn't offer. To have the same amount
> of information, I think we'd need a pg_stat_autovacuum view that shows a
> realtime insight of the workers, and also add some aggregated counters
> to PgStat_StatTabEntry. I wonder if adding counters to
> PgStat_StatTabEntry would be accepted though.

I would also really like to see a means of logging (auto)vacuum activity 
in the database itself. We figured out how to do that with 
pg_stat_statements, which was a lot harder... it seems kinda silly not 
to offer that for vacuum. Hooks plus shared memory data should allow for 
that (the only tricky bit is the hook would need to start and then 
commit a transaction, but that doesn't seem onerous).

I think the shared memory structures should be done as well. Having that 
real-time info is also valuable.

I don't see too much point in adding stuff to the stats system for this.
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Freeze avoidance of very large table.
Next
From: Vitaly Burovoy
Date:
Subject: Re: jsonb array-style subscription