Home icon

Querying and writing to MySQL and MariaDB from Amazon Aurora and Amazon RDS for PostgreSQL using the mysql_fdw extension, Part 2: Handling foreign objects

Database Blog



This article discusses using the MySQL Foreign Data Wrapper (mysql_fdw) extension in PostgreSQL to query and interact with MySQL and MariaDB databases across different Amazon RDS and Aurora environments.

  • Allows importing entire database schemas or selective tables between PostgreSQL and MySQL
  • Supports creating foreign tables with subset of columns from remote databases
  • Enables writing data to remote MySQL databases through foreign tables
  • Provides options for materializing foreign tables to improve query performance
  • Supports creating views on top of foreign tables and vice versa

The extension facilitates cross-database operations, data integration, and migration between PostgreSQL and MySQL/MariaDB databases with minimal complexity.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Jun 9
2025
Using the PostgreSQL extension tds_fdw to validate data migration from SQL Server to Amazon Aurora PostgreSQL
Mar 11
2026
Migrate Cloud SQL for MySQL to Amazon Aurora and Amazon RDS for MySQL Using AWS DMS
Jul 23
2024
Export Amazon RDS for MySQL and MariaDB databases to Amazon S3 using a custom API
Sep 27
2024
Troubleshoot Amazon RDS for MySQL and Amazon RDS for MariaDB Errors

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.