Bird
0
0

You want to create a foreign table that connects to a MySQL database using FDW. Which additional step is required beyond creating the foreign server and user mapping?

hard📝 Application Q9 of 15
PostgreSQL - Advanced Features
You want to create a foreign table that connects to a MySQL database using FDW. Which additional step is required beyond creating the foreign server and user mapping?
AUse the postgres_fdw extension as usual
BInstall and use the mysql_fdw extension specific for MySQL
CConvert MySQL tables to PostgreSQL format first
DCreate a foreign table without any extension
Step-by-Step Solution
Solution:
  1. Step 1: Understand FDW for different databases

    Different databases require specific FDW extensions (e.g., mysql_fdw for MySQL).
  2. Step 2: Identify correct extension for MySQL

    mysql_fdw must be installed and used to connect to MySQL servers.
  3. Final Answer:

    Install and use the mysql_fdw extension specific for MySQL -> Option B
  4. Quick Check:

    Different DBs need specific FDW extensions = Install and use the mysql_fdw extension specific for MySQL [OK]
Quick Trick: Use specific FDW extension for each external database [OK]
Common Mistakes:
  • Using postgres_fdw for MySQL connections
  • Trying to create foreign tables without extension
  • Assuming automatic format conversion

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PostgreSQL Quizzes