I'm averaging 1.5 ranges per ID over about 3 months.
Still, it's a good opportunity to learn to do it right.
Follow-up questions: - what data type do you use to go from RPostgreSQL to a tztrange using dbWriteTable? (Or do I need to make it into a text field in R first ... which is doable.)
Don't know...
- how do you build a constraint that there are no overlapping ranges for a given ID?
Not sure on the exact syntax you'll need here but the following example seems to be relevant: