Rename bucket.prev_end_time to previous_end_time.

Refactor a good chunk of the function code.

Change all 1970 references to either 'EPOCH' or '-Infinity'.

Do a better job of explicitely referencing the rrs schema.

Change max_end_time_to_delete to count the actual number of buckets instead of
doing math based on what's defined in the RRS table. This should be more
robust if someone wanted to change RRS settings after data had been processed.

Create bucket_trimmed view that is limited to the number of buckets defined
for an RRS. Without this, you can end up with extra data points.

Changed description of 'last month' RRS to 'last 30 days', which is more
accurate. If you wish to bring your install inline with this, this update
statement will do the trick:

UPDATE rrs.rrs SET rrs_name = 'last 30 days' WHERE rrs_name = 'last month';

0.4.1
-----
Fix ordering problems with 0.3-0.4 update, as well as 0.4 install.

0.4
---
Added a throttling system that limits the amount of data to process when
trying to catch-up.

Added hard limits on the maximum amount of data to process at once.

Added a version table to track schema/code version.

0.3
---
Change update() to SECURITY DEFINER and remove grants on things that no longer
needed them.

Add schema references to several places.

Fix bug in max_end_time_to_delete. Previously, it would not consider the
requirements children had of their parents.

Second call to update_locks() in update() was completely broken.

Add crude update mechanism.

$Id: CHANGELOG 76 2007-11-09 18:14:43Z decibel $

vi: noexpandtab ts=4 sw=4
