pg_mysql
A PostgreSQL extension for launching MySQL servers from within PostgreSQL
pg_mysql · A PostgreSQL extension for launching MySQL servers from within PostgreSQL
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101585 | pg_mysql | pg_mysql | 1.0 | SIM | Apache-2.0 | C |
Usage
Sources:
- Official upstream README
- Official extension control file (pg_mysql.control)
- Official extension SQL (pg_mysql–1.0.sql)
pg_mysql — Production-grade replication for PostgreSQL - at last! Use it when porting or emulating the corresponding database API. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
mysql.delete(port integer)is an extension function and returnstext.mysql.query(sql text, port integer DEFAULT 0)is an extension function and returnstext.mysql.start(port integer DEFAULT 0, semi_sync boolean DEFAULT false)is an extension function and returnsmysql.mysql.start_replica(source_host text, source_port integer, port integer DEFAULT 0, semi_sync boolean DEFAULT false)is an extension function and returnsmysql.mysql.status(port integer DEFAULT 0)is an extension function and returnsSETOF.mysql.stop(port integer)is an extension function and returnstext.mysql.start_resultis an extension-defined type.mysql.status_infois an extension-defined type.
Requirements and Caveats
- The reviewed control file declares default version
1.0. - The control file marks the extension as non-relocatable.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.