gb18030_2022

Support GB18030-2022 and UTF-8 conversion

Overview

PackageVersionCategoryLicenseLanguage
ivorysql1.0SIMApache-2.0C
IDExtensionBinLibLoadCreateTrustRelocSchema
9140ivorysql_oraNoYesNoYesNoNosys
9150ora_btree_ginNoYesNoYesYesNosys
9160ora_btree_gistNoYesNoYesYesNosys
9170pg_get_functiondefNoYesNoYesYesNo-
9180plisqlNoYesNoYesYesNopg_catalog
9190gb18030_2022NoYesNoYesYesNopg_catalog

from contrib/gb18030_2022/gb18030_2022.control and package metadata

Version

TypeRepoVersionPG VerPackageDeps
EXTPIGSTY1.01817161514ivorysql-
RPMPIGSTY5.11817161514ivorysql5-
DEBPIGSTY5.11817161514ivorysql-5-
OS / PGPG18PG17PG16PG15PG14
el8.x86_64PIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISS
el8.aarch64PIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISS
el9.x86_64PIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISS
el9.aarch64PIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISS
el10.x86_64PIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISS
el10.aarch64PIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISS
d12.x86_64PIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISS
d12.aarch64PIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISS
d13.x86_64PIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISS
d13.aarch64PIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISS
u22.x86_64PIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISS
u22.aarch64PIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISS
u24.x86_64PIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISS
u24.aarch64PIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISSPIGSTY MISS

Install

You can install ivorysql directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:

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

Install the extension using pig or apt/yum/dnf:

pig install ivorysql;          # Install for current active PG version
pig ext install -y ivorysql -v 18  # PG 18
dnf install -y ivorysql5       # PG 18
apt install -y ivorysql-5   # PG 18

Create Extension:

CREATE EXTENSION gb18030_2022;

Usage

gb18030_2022: Support GB18030-2022 and UTF-8 conversion

The gb18030_2022 extension provides conversion support between the GB18030-2022 Chinese national character encoding standard and UTF-8.

Enabling

CREATE EXTENSION gb18030_2022;

Overview

GB18030-2022 is the updated Chinese national standard for character encoding, superseding GB18030-2005. This extension enables PostgreSQL to properly handle conversion between GB18030-2022 encoded data and UTF-8.

Key Features

  • Full support for GB18030-2022 character encoding standard
  • Bidirectional conversion between GB18030-2022 and UTF-8
  • Updated character mappings per the 2022 revision of the standard
  • Handles all CJK Unified Ideographs, including Extension blocks

This extension is part of the IvorySQL project and is primarily useful for applications that need to process Chinese text data encoded in the GB18030-2022 standard.


Last Modified 2026-03-12: add pg extension catalog (95749bf)