Skip to content

aux_mysql

MySQL Supplementary Extension

openhalo · MySQL Supplementary Extension

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
9420aux_mysqlopenhalo2.0SIMGPL-3.0-or-laterC
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
--sLd--NoYesYesYesnono
Relationships
Schemasmysql
See Alsomysql_fdw db_migrator postgres_fdw orafce db2fce tds_fdw db2_fdw
Requires the OpenHalo kernel. OpenHalo 19 bundles aux_mysql 2.0.

Packages

TypeRepoVersionPG Major CompatibilityPackage PatternDependencies
EXTPIGSTY2.019 18 17 16 15openhalo-
RPMPIGSTY19.0.019 18 17 16 15openhalodb-19-
DEBPIGSTY19.0.019 18 17 16 15openhalodb-19-
Linux / PGPG19PG18PG17PG16PG15
el8.x86_64N/AN/AN/AN/AN/A
el8.aarch64N/AN/AN/AN/AN/A
el9.x86_64PIGSTY 19.0.0N/AN/AN/AN/A
el9.aarch64PIGSTY 19.0.0N/AN/AN/AN/A
el10.x86_64PIGSTY 19.0.0N/AN/AN/AN/A
el10.aarch64PIGSTY 19.0.0N/AN/AN/AN/A
d12.x86_64PIGSTY 19.0.0N/AN/AN/AN/A
d12.aarch64PIGSTY 19.0.0N/AN/AN/AN/A
d13.x86_64PIGSTY 19.0.0N/AN/AN/AN/A
d13.aarch64PIGSTY 19.0.0N/AN/AN/AN/A
u22.x86_64PIGSTY 19.0.0N/AN/AN/AN/A
u22.aarch64PIGSTY 19.0.0N/AN/AN/AN/A
u24.x86_64PIGSTY 19.0.0N/AN/AN/AN/A
u24.aarch64PIGSTY 19.0.0N/AN/AN/AN/A
u26.x86_64PIGSTY 19.0.0N/AN/AN/AN/A
u26.aarch64PIGSTY 19.0.0N/AN/AN/AN/A

Source

pig build pkg openhalo;		# 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 openhalo;		# install by package name
pig install aux_mysql;		# install by extension name

pig install aux_mysql -v 19;   # install for PG 19

Config this extension to shared_preload_libraries:

shared_preload_libraries = 'aux_mysql';

Create this extension with:

CREATE EXTENSION aux_mysql;

Usage

Sources:

aux_mysql 2.0 ships with OpenHalo 19.0.0 and provides MySQL wire protocol, syntax, and functions. Run pig install openhalo-19 to install the openhalodb-19 kernel package. This command selects PG19 even when another PostgreSQL major is active.

Enable and connect

New OpenHalo 19 clusters load aux_mysql through shared_preload_libraries by default. The extension creates ICU collations, so use a database with an ICU-compatible encoding such as UTF8. As an administrator, connect over PostgreSQL to the database named by mysql.database (default postgres) and create the extension.

CREATE EXTENSION aux_mysql;
SELECT extversion FROM pg_extension WHERE extname = 'aux_mysql';

On OpenHalo 19 the query returns 2.0. With mysql.listener_on enabled, MySQL clients can connect to mysql.port (default 3306). MySQL databases map to schemas in the selected PostgreSQL database. The extension installs casts in that database. Use a separate database for workloads that require stock PostgreSQL casts.

Table reader