onemoredata / bagger

Massive log storage in PostgreSQL
BSD 2-Clause "Simplified" License
9 stars 0 forks source link

Create safe method for determining next partition time #34

Closed einhverfr closed 8 months ago

einhverfr commented 8 months ago

In order to make sure we can properly resolve #6, we need to be able to calculate boundaries for upcoming partition shifts.

I propose a setting for this that would specify the number of hours to pre-plan changes

The current DateTime->now() would then be truncated to the hour field, and then have that number of hours added.

Long-run we may need something more flexible though.