Beginner Level
-
What is PostgreSQL and what are its main features?
-
How do you create a new database and a new table in PostgreSQL?
-
What are the different data types supported in PostgreSQL?
-
How do you insert, update, and delete records in PostgreSQL?
-
What is a
SERIAL
data type? -
Explain the difference between
CHAR
,VARCHAR
, andTEXT
. -
What is a primary key? Can a table have multiple primary keys?
-
How do you perform a JOIN in PostgreSQL? Give examples of INNER, LEFT, RIGHT, and FULL joins.
🟡 Intermediate Level
-
What are indexes in PostgreSQL? How do they work?
-
What is the difference between a unique constraint and a primary key?
-
How do you use
EXPLAIN
andEXPLAIN ANALYZE
to optimize queries? -
What is a CTE (Common Table Expression)? How is it different from a subquery?
-
How does PostgreSQL handle transactions? Explain ACID properties.
-
What is the purpose of the
RETURNING
clause in INSERT/UPDATE/DELETE? -
What are some ways to improve performance in PostgreSQL?
-
How do you handle NULLs in PostgreSQL? How do they affect sorting and filtering?
🔴 Advanced Level
-
What is the difference between
VACUUM
,ANALYZE
,AUTOVACUUM
, andREINDEX
? -
Explain MVCC (Multi-Version Concurrency Control) in PostgreSQL.
-
What are TOAST tables and when are they used?
-
What is a materialized view? How is it different from a regular view?
-
How does PostgreSQL manage concurrency and locking?
-
What is the difference between logical and physical replication?
-
How would you handle database partitioning in PostgreSQL?
-
Explain how WAL (Write-Ahead Logging) works.
-
How would you monitor PostgreSQL performance in a production environment?
No comments:
Post a Comment