Skip to content

pg_ethopic

Format Ethiopic dates and numbers in PostgreSQL.

pg_ethopic · Format Ethiopic dates and numbers in PostgreSQL.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
100827pg_ethopicpg_ethopic0.0.1FUNCMITRust

PostgreSQL · 13, 14, 15, 16, 17

Usage

Sources:

pg_ethopic formats PostgreSQL dates in the Ethiopic calendar and integers with Ethiopic numerals.

CREATE EXTENSION pg_ethopic;
SELECT ethopic_date(CURRENT_DATE);
SELECT ethopic_date(DATE '2026-01-01', '{year}/{month}/{day}');
SELECT ethopic_number(420);

The custom date template supports the fields implemented by the upstream Rust library; validate templates and expected calendar boundaries with domain examples. Results are formatted text, not a distinct calendar-aware date type, so retain the original PostgreSQL date for sorting and arithmetic.

Version 0.0.1 is an early pgrx extension. The README provides container images for PostgreSQL 13–17, while Cargo also defines a PostgreSQL 12 feature. Test conversion results, negative and large numbers, locale-independent output, and upgrades before using formatted values in exported records or legal documents.

Table reader