pgsql_rrule
pgsql_rrule · Pure SQL PostgreSQL data types and functions for parsing and expanding RFC 5545 recurrence rules.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100689 | pgsql_rrule | pgsql_rrule | 0.0.4 | TYPE | PostgreSQL | SQL |
PostgreSQL · 10, 11, 12, 13, 14, 15, 16, 17, 18
Usage
Sources:
pgsql_rrule is a pure-SQL implementation of data types and functions for parsing and expanding RFC 5545 recurrence rules. It defines composite type rrule, frequency and weekday types, parser rrule(text), set-returning rrule_expand(...), and get_occurrences(...) compatibility functions.
The parser validates combinations of fields, but the reviewed expansion code is intentionally incomplete. It raises errors for unsupported frequencies and explicitly rejects weekly BYSETPOS and weekly INTERVAL > 1; test every recurrence shape used by the application, including inclusivity, time zones, fractional seconds, malformed input, and large/unbounded result sets.
The control file records 0.0.4, generated from the repository’s unversioned SQL source, while the project metadata marks that line unstable. Pin the exact commit rather than relying only on a version label, compare results with a maintained RFC 5545 implementation, and enforce an application-level upper bound on expansion.