Bird
0
0

Which PostgreSQL command is used to install the extension for the built-in foreign data wrapper to connect to other PostgreSQL servers?

easy📝 Conceptual Q2 of 15
PostgreSQL - Advanced Features
Which PostgreSQL command is used to install the extension for the built-in foreign data wrapper to connect to other PostgreSQL servers?
AINSTALL FOREIGN DATA WRAPPER postgres_fdw;
BCREATE EXTENSION postgres_fdw;
CADD EXTENSION postgres_fdw;
DENABLE FOREIGN DATA WRAPPER postgres_fdw;
Step-by-Step Solution
Solution:
  1. Step 1: Recall extension installation syntax

    PostgreSQL uses CREATE EXTENSION to add extensions.
  2. Step 2: Match correct command for postgres_fdw

    The correct command is CREATE EXTENSION postgres_fdw; to enable FDW support.
  3. Final Answer:

    CREATE EXTENSION postgres_fdw; -> Option B
  4. Quick Check:

    Extension install = CREATE EXTENSION [OK]
Quick Trick: Use CREATE EXTENSION to add FDW support [OK]
Common Mistakes:
  • Using INSTALL or ADD instead of CREATE EXTENSION
  • Confusing ENABLE with CREATE EXTENSION
  • Missing semicolon at command end

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PostgreSQL Quizzes