I'm interested in finding a way of gathering and retaining system statistics in my postgres instances, so I can see how certain things are changing over time. I know postgres provides a range of pre-defined views for viewing current activity, but are there any modules/scripts that are available to help capture (on a scheduled basis) and retain necessary server stats in tables?