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 | 1.2.3 |
TIME | MIT OR Apache-2.0 | 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
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.2.3 |
18 17 16 15 14 | edtf_postgres |
- |
| RPM | PIGSTY | 1.2.3 |
18 17 16 15 14 | edtf_postgres_$v |
- |
| DEB | PIGSTY | 1.2.3 |
18 17 16 15 14 | postgresql-$v-edtf-postgres |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 |
| el8.aarch64 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 |
| el9.x86_64 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 |
| el9.aarch64 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 |
| el10.x86_64 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 |
| el10.aarch64 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 |
| d12.x86_64 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 |
| d12.aarch64 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 |
| d13.x86_64 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 |
| d13.aarch64 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 |
| u22.x86_64 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 |
| u22.aarch64 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 |
| u24.x86_64 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 |
| u24.aarch64 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 |
| u26.x86_64 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 |
| u26.aarch64 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 | PIGSTY 1.2.3 |
Source
github.com/monumental-archive/edtf/tree/edtf-postgres-v1.2.3/crates/edtf-postgres
edtf_postgres-1.2.3.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
Sources:
edtf_postgres exposes Extended Date/Time Format validation, normalization, bounds, and temporal relations for ISO 8601-2:2019 Annex A strings.
Enablement
Release 1.2.3 publishes artifacts for PostgreSQL 14–18 on amd64 and arm64. Install the matching artifact, then run:
The extension is relocatable and trusted, so a role with database CREATE privilege can install it. It does not require preloading.
Validation and Canonical Form
Use edtf_valid before accepting external text, edtf_level to inspect the supported EDTF level, and edtf_canonical to normalize equivalent forms.
edtf_min and edtf_max return index-friendly date bounds. edtf_relation compares two expressions and returns a three-valued temporal relation.
Data Modeling Boundary
The extension operates on text and derived dates; it does not replace application validation or introduce a stored EDTF base type. Preserve the original expression when uncertainty and qualifiers are significant, and index derived bounds only for the query semantics your application intends.