edtf_postgres
edtf_postgres · EDTF validation, normalization, date bounds, and temporal relations
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 1130 | edtf_postgres | edtf_postgres | 2.0.0 | TIME | MIT | Rust |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-dtr | No | Yes | No | Yes | yes | yes |
| Relationships | |
|---|---|
| See Also | pg_when pgcalendar pg_rrule pg_duration |
Packages
| Linux / PG | PG19 | PG18 | PG17 | PG16 | PG15 |
|---|---|---|---|---|---|
| el8.x86_64 | N/A | PIGSTY 1.3.2 | PIGSTY 1.3.2 | PIGSTY 1.3.2 | PIGSTY 1.3.2 |
| el8.aarch64 | N/A | PIGSTY 1.3.2 | PIGSTY 1.3.2 | PIGSTY 1.3.2 | PIGSTY 1.3.2 |
| el9.x86_64 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 |
| el9.aarch64 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 |
| el10.x86_64 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 |
| el10.aarch64 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 |
| d12.x86_64 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 |
| d12.aarch64 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 |
| d13.x86_64 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 |
| d13.aarch64 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 |
| u22.x86_64 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 |
| u22.aarch64 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 |
| u24.x86_64 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 |
| u24.aarch64 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 |
| u26.x86_64 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 |
| u26.aarch64 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 | PIGSTY 2.0.0 |
Source
github.com/monumental-archive/edtf/tree/v2.0.0/crates/edtf-postgres
edtf_postgres-2.0.0.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
Sources:
edtf_postgres 2.0.0 validates and normalizes Extended Date/Time Format expressions, calculates date bounds and compares temporal relations for ISO 8601-2:2019 Annex A.
Enable and Query
Release 2.0.0 supports PostgreSQL 15–19. The extension is trusted and relocatable: a role with database CREATE privilege can install it. No preload is required.
The SQL interface operates on text and derived dates. It does not introduce a stored EDTF base type. Preserve the original input when qualifiers or uncertainty matter, and use derived bounds only for the intended query semantics.
Version 2.0 Boundaries
Version 1.3.5 is the final release with PostgreSQL 14 support. In 2.0.0, edtf_min and edtf_max return negative or positive infinity for bounds outside PostgreSQL’s finite date range, replacing the earlier NULL result. Bounds in years at or before zero are corrected. Review application predicates and any stored derived values when adopting the release.
Y-prefixed years with 19 or more digits are rejected. Normalization and interpretation of ambiguous ranges also change in this major release; revalidate representative historical inputs before replacing existing normalized output.