mysql_fdw

Foreign data wrapper for querying a MySQL server

Overview

PGDG 1st Party Extension: mysql_fdw : Foreign data wrapper for querying a MySQL server

Information

Metadata

  • Latest Version: 1.2
  • Postgres Support: 17,16,15,14,13
  • Need Load: Shared library do not need explicit loading
  • Need DDL: Need CREATE EXTENSION DDL
  • Relocatable: Can not install to arbitrary schema
  • Trusted: Untrusted, Require Superuser to Create
  • Schemas: N/A
  • Requires: N/A

RPM / DEB

  • RPM Repo: PGDG
  • RPM Name: mysql_fdw_$v*
  • RPM Ver : 1.2
  • RPM Deps: N/A
  • DEB Repo: PGDG
  • DEB Name: postgresql-$v-mysql-fdw
  • DEB Ver : 1.2
  • DEB Deps: N/A

Packages

OS Arch PG17 PG16 PG15 PG14 PG13
el8 x86_64 mysql_fdw_17
PGDG 2.9.2
mysql_fdw_16
PGDG 2.9.2
mysql_fdw_15
PGDG 2.9.2
mysql_fdw_14
PGDG 2.9.2
mysql_fdw_13
PGDG 2.9.2
el8 aarch64 mysql_fdw_17
PGDG 2.9.2
mysql_fdw_16
PGDG 2.9.2
mysql_fdw_15
PGDG 2.9.2
mysql_fdw_14
PGDG 2.9.2
mysql_fdw_13
PGDG 2.9.2
el9 x86_64 mysql_fdw_17
PGDG 2.9.2
mysql_fdw_16
PGDG 2.9.2
mysql_fdw_15
PGDG 2.9.2
mysql_fdw_14
PGDG 2.9.2
mysql_fdw_13
PGDG 2.9.2
el9 aarch64 mysql_fdw_17
PGDG 2.9.2
mysql_fdw_16
PGDG 2.9.2
mysql_fdw_15
PGDG 2.9.2
mysql_fdw_14
PGDG 2.9.2
mysql_fdw_13
PGDG 2.9.2
d12 x86_64 postgresql-17-mysql-fdw
PGDG 2.9.2
postgresql-16-mysql-fdw
PGDG 2.9.2
postgresql-15-mysql-fdw
PGDG 2.9.2
postgresql-14-mysql-fdw
PGDG 2.9.2
postgresql-13-mysql-fdw
PGDG 2.9.2
d12 aarch64 postgresql-17-mysql-fdw
PGDG 2.9.2
postgresql-16-mysql-fdw
PGDG 2.9.2
postgresql-15-mysql-fdw
PGDG 2.9.2
postgresql-14-mysql-fdw
PGDG 2.9.2
postgresql-13-mysql-fdw
PGDG 2.9.2
u22 x86_64 postgresql-17-mysql-fdw
PGDG 2.9.2
postgresql-16-mysql-fdw
PGDG 2.9.2
postgresql-15-mysql-fdw
PGDG 2.9.2
postgresql-14-mysql-fdw
PGDG 2.9.2
postgresql-13-mysql-fdw
PGDG 2.9.2
u22 aarch64 postgresql-17-mysql-fdw
PGDG 2.9.2
postgresql-16-mysql-fdw
PGDG 2.9.2
postgresql-15-mysql-fdw
PGDG 2.9.2
postgresql-14-mysql-fdw
PGDG 2.9.2
postgresql-13-mysql-fdw
PGDG 2.9.2
u24 x86_64 postgresql-17-mysql-fdw
PGDG 2.9.2
postgresql-16-mysql-fdw
PGDG 2.9.2
postgresql-15-mysql-fdw
PGDG 2.9.2
postgresql-14-mysql-fdw
PGDG 2.9.2
postgresql-13-mysql-fdw
PGDG 2.9.2
u24 aarch64 postgresql-17-mysql-fdw
PGDG 2.9.2
postgresql-16-mysql-fdw
PGDG 2.9.2
postgresql-15-mysql-fdw
PGDG 2.9.2
postgresql-14-mysql-fdw
PGDG 2.9.2
postgresql-13-mysql-fdw
PGDG 2.9.2

Installation

Install mysql_fdw via the pig CLI tool:

pig ext install mysql_fdw

Install mysql_fdw via Pigsty playbook:

./pgsql.yml -t pg_extension -e '{"pg_extensions": ["mysql_fdw"]}' # -l <cls>

Install mysql_fdw RPM from YUM repo directly:

dnf install mysql_fdw_17*;
dnf install mysql_fdw_16*;
dnf install mysql_fdw_15*;
dnf install mysql_fdw_14*;
dnf install mysql_fdw_13*;

Install mysql_fdw DEB from APT repo directly:

apt install postgresql-17-mysql-fdw;
apt install postgresql-16-mysql-fdw;
apt install postgresql-15-mysql-fdw;
apt install postgresql-14-mysql-fdw;
apt install postgresql-13-mysql-fdw;

Enable mysql_fdw extension on PostgreSQL cluster:

CREATE EXTENSION mysql_fdw;




Last modified 2025-02-17: add extension part (cfa504b)