PostgreSQL offers a highly extensible framework, allowing users to enhance database functionality with extensions, foreign data wrappers (FDWs), and custom-written modules. Learn about managing and leveraging extensions effectively.
CREATE EXTENSION IF NOT EXISTS is used for:
pg_stat_statements extension is used for:
tablefunc extension provides functionality for:
pgcrypto extension add?
dblink extension in PostgreSQL allows:
pg_partman extension is primarily used for:
postgres_fdw extension allows PostgreSQL to:
IMPORT FOREIGN SCHEMA command?
file_fdw extension allows PostgreSQL to access:
pg_config.control file in a PostgreSQL extension specifies:
pg_extension system table| Qno | Answer (Option with Text) |
|---|---|
| 1 | B) CREATE EXTENSION |
| 2 | B) The database schema |
| 3 | C) Extensions are installed per database |
| 4 | B) DROP EXTENSION |
| 5 | B) Creating an extension only if it doesn’t already exist |
| 6 | A) \dx in psql |
| 7 | C) SUPERUSER role |
| 8 | B) Adds support for geospatial data |
| 9 | C) Graph database functionality |
| 10 | B) Analyzing query performance and statistics |
| 11 | A) pg_trgm |
| 12 | B) Generating pivot tables |
| 13 | B) TimescaleDB |
| 14 | B) Cryptographic functions for encryption and decryption |
| 15 | A) Cross-database queries |
| 16 | B) jsonb_tools |
| 17 | A) Managing and creating partitions in tables |
| 18 | B) Accessing external data sources as if they were local tables |
| 19 | B) CREATE FOREIGN DATA WRAPPER |
| 20 | A) Query another PostgreSQL database |
| 21 | B) Maps external tables to the local database schema |
| 22 | A) mysql_fdw |
| 23 | B) Installation of the corresponding extension |
| 24 | B) CSV and text files as foreign tables |
| 25 | B) C |
| 26 | B) Define the SQL functions and scripts |
| 27 | A) CREATE EXTENSION command |
Here are the answers for the last 3 questions:
| Qno | Answer (Option with Text) |
|---|---|
| 28 | A) Makefile and SQL scripts |
| 29 | B) Extension metadata and version information |
| 30 | C) The pg_extension system table |