Reputation: 215
I have a recurrence table that stores the iCalendar RFC 5545 Recurrence Rule string. Ex:
FREQ=MONTHLY;INTERVAL=2
Does anyone know of any postgres functions similar to do the following?
get_events_between(date,date)
Where It would just query the recurrence table and parse the rrule string.
Upvotes: 12
Views: 4376
Reputation: 7144
In PostgreSQL, as of version 14, there is no built-in support for RFC-5545 Recurrence Rule format.
But there are some custom extensions out there.
SELECT *
FROM unnest(
get_occurrences(
'FREQ=MONTHLY;INTERVAL=2'::rrule,
now(),
now() + '6 months'::interval
)
);
Upvotes: 9