pg_xenophile

pg_xenophile

pg_xenophile : More than the bare necessities for PostgreSQL i18n and l10n.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
3610
pg_xenophile
pg_xenophile
0.8.3
TYPE
PostgreSQL
SQL
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
----d--
No
No
No
Yes
no
no
Relationships
Schemasxeno
Requires
hstore
Need By
l10n_table_dependent_extension
See Also
country
currency
icu_ext
prefix
semver
unit
pgpdf
pglite_fusion
Siblings
l10n_table_dependent_extension

Packages

TypeRepoVersionPG Major CompatibilityPackage PatternDependencies
EXT
PIGSTY
0.8.3
18
17
16
15
14
pg_xenophilehstore
RPM
PIGSTY
0.8.3
18
17
16
15
14
pg_xenophile_$v-
DEB
PIGSTY
0.8.3
18
17
16
15
14
postgresql-$v-pg-xenophile-
Linux / PGPG18PG17PG16PG15PG14
el8.x86_64
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
el8.aarch64
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
el9.x86_64
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
el9.aarch64
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
el10.x86_64
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
el10.aarch64
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
d12.x86_64
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
d12.aarch64
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
d13.x86_64
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
d13.aarch64
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
u22.x86_64
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
u22.aarch64
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
u24.x86_64
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
u24.aarch64
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PIGSTY 0.8.3
PackageVersionOSORGSIZEFile URL
pg_xenophile_180.8.3el8.x86_64pigsty49.1 KiBpg_xenophile_18-0.8.3-1PIGSTY.el8.x86_64.rpm
pg_xenophile_180.8.3el8.aarch64pigsty49.1 KiBpg_xenophile_18-0.8.3-1PIGSTY.el8.aarch64.rpm
pg_xenophile_180.8.3el9.x86_64pigsty47.5 KiBpg_xenophile_18-0.8.3-1PIGSTY.el9.x86_64.rpm
pg_xenophile_180.8.3el9.aarch64pigsty47.4 KiBpg_xenophile_18-0.8.3-1PIGSTY.el9.aarch64.rpm
pg_xenophile_180.8.3el10.x86_64pigsty47.6 KiBpg_xenophile_18-0.8.3-1PIGSTY.el10.x86_64.rpm
pg_xenophile_180.8.3el10.aarch64pigsty47.6 KiBpg_xenophile_18-0.8.3-1PIGSTY.el10.aarch64.rpm
postgresql-18-pg-xenophile0.8.3d12.x86_64pigsty46.0 KiBpostgresql-18-pg-xenophile_0.8.3-1PIGSTY~bookworm_amd64.deb
postgresql-18-pg-xenophile0.8.3d12.aarch64pigsty46.0 KiBpostgresql-18-pg-xenophile_0.8.3-1PIGSTY~bookworm_arm64.deb
postgresql-18-pg-xenophile0.8.3d13.x86_64pigsty45.9 KiBpostgresql-18-pg-xenophile_0.8.3-1PIGSTY~trixie_amd64.deb
postgresql-18-pg-xenophile0.8.3d13.aarch64pigsty46.0 KiBpostgresql-18-pg-xenophile_0.8.3-1PIGSTY~trixie_arm64.deb
postgresql-18-pg-xenophile0.8.3u22.x86_64pigsty48.6 KiBpostgresql-18-pg-xenophile_0.8.3-1PIGSTY~jammy_amd64.deb
postgresql-18-pg-xenophile0.8.3u22.aarch64pigsty48.7 KiBpostgresql-18-pg-xenophile_0.8.3-1PIGSTY~jammy_arm64.deb
postgresql-18-pg-xenophile0.8.3u24.x86_64pigsty48.2 KiBpostgresql-18-pg-xenophile_0.8.3-1PIGSTY~noble_amd64.deb
postgresql-18-pg-xenophile0.8.3u24.aarch64pigsty48.2 KiBpostgresql-18-pg-xenophile_0.8.3-1PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pg_xenophile_170.8.3el8.x86_64pigsty49.1 KiBpg_xenophile_17-0.8.3-1PIGSTY.el8.x86_64.rpm
pg_xenophile_170.8.3el8.aarch64pigsty49.1 KiBpg_xenophile_17-0.8.3-1PIGSTY.el8.aarch64.rpm
pg_xenophile_170.8.3el9.x86_64pigsty47.5 KiBpg_xenophile_17-0.8.3-1PIGSTY.el9.x86_64.rpm
pg_xenophile_170.8.3el9.aarch64pigsty47.4 KiBpg_xenophile_17-0.8.3-1PIGSTY.el9.aarch64.rpm
pg_xenophile_170.8.3el10.x86_64pigsty47.6 KiBpg_xenophile_17-0.8.3-1PIGSTY.el10.x86_64.rpm
pg_xenophile_170.8.3el10.aarch64pigsty47.6 KiBpg_xenophile_17-0.8.3-1PIGSTY.el10.aarch64.rpm
postgresql-17-pg-xenophile0.8.3d12.x86_64pigsty46.0 KiBpostgresql-17-pg-xenophile_0.8.3-1PIGSTY~bookworm_amd64.deb
postgresql-17-pg-xenophile0.8.3d12.aarch64pigsty46.0 KiBpostgresql-17-pg-xenophile_0.8.3-1PIGSTY~bookworm_arm64.deb
postgresql-17-pg-xenophile0.8.3d13.x86_64pigsty46.0 KiBpostgresql-17-pg-xenophile_0.8.3-1PIGSTY~trixie_amd64.deb
postgresql-17-pg-xenophile0.8.3d13.aarch64pigsty46.0 KiBpostgresql-17-pg-xenophile_0.8.3-1PIGSTY~trixie_arm64.deb
postgresql-17-pg-xenophile0.8.3u22.x86_64pigsty48.7 KiBpostgresql-17-pg-xenophile_0.8.3-1PIGSTY~jammy_amd64.deb
postgresql-17-pg-xenophile0.8.3u22.aarch64pigsty48.7 KiBpostgresql-17-pg-xenophile_0.8.3-1PIGSTY~jammy_arm64.deb
postgresql-17-pg-xenophile0.8.3u24.x86_64pigsty48.2 KiBpostgresql-17-pg-xenophile_0.8.3-1PIGSTY~noble_amd64.deb
postgresql-17-pg-xenophile0.8.3u24.aarch64pigsty48.2 KiBpostgresql-17-pg-xenophile_0.8.3-1PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pg_xenophile_160.8.3el8.x86_64pigsty49.1 KiBpg_xenophile_16-0.8.3-1PIGSTY.el8.x86_64.rpm
pg_xenophile_160.8.3el8.aarch64pigsty49.1 KiBpg_xenophile_16-0.8.3-1PIGSTY.el8.aarch64.rpm
pg_xenophile_160.8.3el9.x86_64pigsty47.5 KiBpg_xenophile_16-0.8.3-1PIGSTY.el9.x86_64.rpm
pg_xenophile_160.8.3el9.aarch64pigsty47.4 KiBpg_xenophile_16-0.8.3-1PIGSTY.el9.aarch64.rpm
pg_xenophile_160.8.3el10.x86_64pigsty47.6 KiBpg_xenophile_16-0.8.3-1PIGSTY.el10.x86_64.rpm
pg_xenophile_160.8.3el10.aarch64pigsty47.6 KiBpg_xenophile_16-0.8.3-1PIGSTY.el10.aarch64.rpm
postgresql-16-pg-xenophile0.8.3d12.x86_64pigsty46.0 KiBpostgresql-16-pg-xenophile_0.8.3-1PIGSTY~bookworm_amd64.deb
postgresql-16-pg-xenophile0.8.3d12.aarch64pigsty46.0 KiBpostgresql-16-pg-xenophile_0.8.3-1PIGSTY~bookworm_arm64.deb
postgresql-16-pg-xenophile0.8.3d13.x86_64pigsty46.0 KiBpostgresql-16-pg-xenophile_0.8.3-1PIGSTY~trixie_amd64.deb
postgresql-16-pg-xenophile0.8.3d13.aarch64pigsty46.0 KiBpostgresql-16-pg-xenophile_0.8.3-1PIGSTY~trixie_arm64.deb
postgresql-16-pg-xenophile0.8.3u22.x86_64pigsty48.6 KiBpostgresql-16-pg-xenophile_0.8.3-1PIGSTY~jammy_amd64.deb
postgresql-16-pg-xenophile0.8.3u22.aarch64pigsty48.7 KiBpostgresql-16-pg-xenophile_0.8.3-1PIGSTY~jammy_arm64.deb
postgresql-16-pg-xenophile0.8.3u24.x86_64pigsty48.2 KiBpostgresql-16-pg-xenophile_0.8.3-1PIGSTY~noble_amd64.deb
postgresql-16-pg-xenophile0.8.3u24.aarch64pigsty48.2 KiBpostgresql-16-pg-xenophile_0.8.3-1PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pg_xenophile_150.8.3el8.x86_64pigsty49.1 KiBpg_xenophile_15-0.8.3-1PIGSTY.el8.x86_64.rpm
pg_xenophile_150.8.3el8.aarch64pigsty49.1 KiBpg_xenophile_15-0.8.3-1PIGSTY.el8.aarch64.rpm
pg_xenophile_150.8.3el9.x86_64pigsty47.5 KiBpg_xenophile_15-0.8.3-1PIGSTY.el9.x86_64.rpm
pg_xenophile_150.8.3el9.aarch64pigsty47.5 KiBpg_xenophile_15-0.8.3-1PIGSTY.el9.aarch64.rpm
pg_xenophile_150.8.3el10.x86_64pigsty47.6 KiBpg_xenophile_15-0.8.3-1PIGSTY.el10.x86_64.rpm
pg_xenophile_150.8.3el10.aarch64pigsty47.6 KiBpg_xenophile_15-0.8.3-1PIGSTY.el10.aarch64.rpm
postgresql-15-pg-xenophile0.8.3d12.x86_64pigsty46.0 KiBpostgresql-15-pg-xenophile_0.8.3-1PIGSTY~bookworm_amd64.deb
postgresql-15-pg-xenophile0.8.3d12.aarch64pigsty46.0 KiBpostgresql-15-pg-xenophile_0.8.3-1PIGSTY~bookworm_arm64.deb
postgresql-15-pg-xenophile0.8.3d13.x86_64pigsty46.0 KiBpostgresql-15-pg-xenophile_0.8.3-1PIGSTY~trixie_amd64.deb
postgresql-15-pg-xenophile0.8.3d13.aarch64pigsty46.0 KiBpostgresql-15-pg-xenophile_0.8.3-1PIGSTY~trixie_arm64.deb
postgresql-15-pg-xenophile0.8.3u22.x86_64pigsty48.7 KiBpostgresql-15-pg-xenophile_0.8.3-1PIGSTY~jammy_amd64.deb
postgresql-15-pg-xenophile0.8.3u22.aarch64pigsty48.7 KiBpostgresql-15-pg-xenophile_0.8.3-1PIGSTY~jammy_arm64.deb
postgresql-15-pg-xenophile0.8.3u24.x86_64pigsty48.2 KiBpostgresql-15-pg-xenophile_0.8.3-1PIGSTY~noble_amd64.deb
postgresql-15-pg-xenophile0.8.3u24.aarch64pigsty48.2 KiBpostgresql-15-pg-xenophile_0.8.3-1PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pg_xenophile_140.8.3el8.x86_64pigsty49.1 KiBpg_xenophile_14-0.8.3-1PIGSTY.el8.x86_64.rpm
pg_xenophile_140.8.3el8.aarch64pigsty49.1 KiBpg_xenophile_14-0.8.3-1PIGSTY.el8.aarch64.rpm
pg_xenophile_140.8.3el9.x86_64pigsty47.5 KiBpg_xenophile_14-0.8.3-1PIGSTY.el9.x86_64.rpm
pg_xenophile_140.8.3el9.aarch64pigsty47.5 KiBpg_xenophile_14-0.8.3-1PIGSTY.el9.aarch64.rpm
pg_xenophile_140.8.3el10.x86_64pigsty47.6 KiBpg_xenophile_14-0.8.3-1PIGSTY.el10.x86_64.rpm
pg_xenophile_140.8.3el10.aarch64pigsty47.6 KiBpg_xenophile_14-0.8.3-1PIGSTY.el10.aarch64.rpm
postgresql-14-pg-xenophile0.8.3d12.x86_64pigsty46.0 KiBpostgresql-14-pg-xenophile_0.8.3-1PIGSTY~bookworm_amd64.deb
postgresql-14-pg-xenophile0.8.3d12.aarch64pigsty46.0 KiBpostgresql-14-pg-xenophile_0.8.3-1PIGSTY~bookworm_arm64.deb
postgresql-14-pg-xenophile0.8.3d13.x86_64pigsty46.0 KiBpostgresql-14-pg-xenophile_0.8.3-1PIGSTY~trixie_amd64.deb
postgresql-14-pg-xenophile0.8.3d13.aarch64pigsty46.0 KiBpostgresql-14-pg-xenophile_0.8.3-1PIGSTY~trixie_arm64.deb
postgresql-14-pg-xenophile0.8.3u22.x86_64pigsty48.7 KiBpostgresql-14-pg-xenophile_0.8.3-1PIGSTY~jammy_amd64.deb
postgresql-14-pg-xenophile0.8.3u22.aarch64pigsty48.7 KiBpostgresql-14-pg-xenophile_0.8.3-1PIGSTY~jammy_arm64.deb
postgresql-14-pg-xenophile0.8.3u24.x86_64pigsty48.2 KiBpostgresql-14-pg-xenophile_0.8.3-1PIGSTY~noble_amd64.deb
postgresql-14-pg-xenophile0.8.3u24.aarch64pigsty48.2 KiBpostgresql-14-pg-xenophile_0.8.3-1PIGSTY~noble_arm64.deb

Source

pig build pkg pg_xenophile;		# build rpm/deb

Install

Make sure PGDG and PIGSTY repo available:

pig repo add pgsql -u   # add both repo and update cache

Install this extension with pig:

pig install pg_xenophile;		# install via package name, for the active PG version

pig install pg_xenophile -v 18;   # install for PG 18
pig install pg_xenophile -v 17;   # install for PG 17
pig install pg_xenophile -v 16;   # install for PG 16
pig install pg_xenophile -v 15;   # install for PG 15
pig install pg_xenophile -v 14;   # install for PG 14

Create this extension with:

CREATE EXTENSION pg_xenophile CASCADE; -- requires hstore

Usage

pg_xenophile: internationalization (i18n) and localization (l10n) utilities

The pg_xenophile extension provides i18n/l10n infrastructure including reference data for countries, languages, and currencies, plus automated localization table management.

CREATE EXTENSION pg_xenophile CASCADE;

All objects reside in the xeno schema (non-relocatable).

Reference Tables

  • xeno.country: ISO 3166-1 codes with calling codes and currencies
  • xeno.lang: ISO 639-1 language codes
  • xeno.currency: ISO 4217 currency codes with symbols
  • xeno.country_subdivision: ISO 3166-2 subdivision codes
  • xeno.eu_country: EU membership tracking
  • xeno.country_postal_code_pattern: Postal code validation patterns

Localization Tables

The extension auto-manages translation tables. Insert into xeno.l10n_table to register a translatable base table:

INSERT INTO xeno.l10n_table (base_table_schema, base_table_name)
VALUES ('public', 'products');

This automatically creates a companion products_l10n table and language-specific views.

Convenience Views

  • xeno.country_l10n_en: Country names in English
  • xeno.lang_l10n_en: Language names in English
  • xeno.country_subdivision_l10n_en: Subdivision names in English

Configuration

SET pg_xenophile.base_lang_code = 'en';
SET pg_xenophile.user_lang_code = 'en';
SET pg_xenophile.target_lang_codes = '{nl,fr,de}';
Last updated on