gb18030_2022
ivorysql · Support GB18030-2022 and UTF-8 conversion
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 9190 | gb18030_2022 | ivorysql | 1.0 | SIM | Apache-2.0 | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-dt- | No | Yes | No | Yes | no | yes |
| Relationships | |
|---|---|
| Schemas | pg_catalog |
| See Also | icu_ext pg_xenophile pg_cjk_parser unaccent pgroonga pg_tokenizer dict_xsyn zhparser citext pg_jieba |
| Siblings | ivorysql_ora ora_btree_gin ora_btree_gist pg_get_functiondef plisql |
Packages
| Linux / PG | PG19 | PG18 | PG17 | PG16 | PG15 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| el8.aarch64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| el9.x86_64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| el9.aarch64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| el10.x86_64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| el10.aarch64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| d12.x86_64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| d12.aarch64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| d13.x86_64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| d13.aarch64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| u22.x86_64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| u22.aarch64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| u24.x86_64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| u24.aarch64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| u26.x86_64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| u26.aarch64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
Source
github.com/IvorySQL/IvorySQL/tree/2269591ea327cbf99e7db6f518ec6ecf67cdadee/contrib/gb18030_2022
ivorysql-6.0.tar.gz
ivorysql-5.6.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
Sources:
- IvorySQL 6.0
- gb18030_2022.control
- gb18030_2022–1.0.sql
- utf8_and_gb18030_2022.c
- gb18030_2022_and_utf8.sql
This module supplies the GB18030-2022 mapping tables for conversion between GB18030 and UTF8. IvorySQL calls the conversion hooks registered when the library loads in a server process.
IvorySQL 6.0 is based on PostgreSQL 19.0 and ships gb18030_2022 at SQL version 1.0. The PG18 package uses IvorySQL 5.6.
IvorySQL creates gb18030_2022 during database initialization. In a UTF-8 database a privileged session can load the library and check the mapping.
The byte pair in the example decodes to ḿ (U+1E3F). The SQL installation script loads the library in the installing session. For other connections, ensure the library is loaded in each process that needs the 2022 mappings.