Magnus Hagander <magnus(at)hagander(dot)net> writes:
> Here's a patch to add some more data to pg_stat_database. Turns out it
> was a lot easier than I thought - especially after reading Alvaros mail.
> Luckily I think he was wrong this time ;-)
This seems like the wrong way to go about it. Why not compute these sums
on demand by scanning the stats tables, instead of bloating the stats
collector traffic even more?
regards, tom lane