Q1
True / FalsePostgreSQL is an open-source relational database management system (RDBMS).
PostgreSQL is an open-source RDBMS known for its robustness and compliance with SQL standards.
Q2
True / FalseIn PostgreSQL, databases are not case-sensitive by default.
PostgreSQL treats identifiers (like table and column names) as case-insensitive by default unless they are quoted.
Q3
True / FalsePostgreSQL does not support JSON data types.
PostgreSQL has strong support for JSON data types, allowing for efficient storage and querying of JSON data.
Q4
True / FalseIn PostgreSQL, the VACUUM command is used to reclaim storage and optimize database performance
The VACUUM command in PostgreSQL helps to reclaim storage occupied by dead tuples and optimize performance
Q5
True / FalsePostgreSQL supports full-text search capabilities natively.
PostgreSQL includes built-in full-text search capabilities, allowing users to perform complex text searches within their databases.
Q6
True / FalseIn PostgreSQL, the SERIAL data type automatically generates unique integer values.
The SERIAL data type in PostgreSQL is used to create auto-incrementing integer columns, commonly used for primary keys.
Q7
True / FalsePostgreSQL supports multi-version concurrency control (MVCC) to handle concurrent transactions.
PostgreSQL uses multi-version concurrency control (MVCC) to manage concurrent transactions efficiently without locking the database.
Q8
True / FalseIn PostgreSQL, a foreign data wrapper (FDW) is used to query external data sources as if they were regular PostgreSQL tables.
Foreign Data Wrappers (FDWs) in PostgreSQL allow users to access and query external data sources as if they were regular tables in PostgreSQL.
Q9
True / FalsePostgreSQL's pg_dump utility can only be used to back up entire databases, not specific tables.
The pg_dump utility in PostgreSQL can be used to back up entire databases or specific tables
Q10
True / FalseIn PostgreSQL, the RECURSIVE keyword is used in a WITH clause to create recursive Common Table Expressions (CTEs).
The RECURSIVE keyword in a WITH clause in PostgreSQL is used to create recursive Common Table Expressions (CTEs), which allow a query to reference itself.
Q28
Multiple ChoiceChoose the correct SQL query that sets up a foreign data wrapper in PostgreSQL to interact with an external database platform.
SQL Code
CREATE EXTENSION postgres_fdw;
CREATE SERVER foreign_server
FOREIGN DATA WRAPPER postgres_fdw
OPTIONS (host 'foreign_host', dbname 'foreign_db', port '5432');
This sequence of commands installs the 'postgres_fdw' extension, creates a server connection named 'foreign_server' to an external PostgreSQL instance, allowing interaction between different database platforms.