Postgresql easy
Which standard PostgreSQL utility is designed to extract a single database into a script or archive file for backup purposes?
- A pg_restore: Used to reload an archive file into a physical database instance.
- B pg_dump: Used to generate a consistent logical backup of a specific database.
- C pg_start: Used to initiate the background server process for a cloud cluster.
- D pg_vacuum: Used to physically clean and optimize the underlying disk storage.
Answer: B. pg_dump: Used to generate a consistent logical backup of a specific database.
`pg_dump` creates a logical backup of the database. It is a non-blocking operation, meaning the database remains fully functional and accessible while the dump is being generated.
One system design question a day, with spaced repetition so the ones you miss come back.
Get the appRelated questions
- In a PostgreSQL environment, what functional characteristic distinguishes a `MATERIALIZED VIEW` from a standard `VIEW`?
- Why would PostgreSQL reject a `DELETE` operation on a record despite the user having full administrative privileges?
- The 'Heap Only Tuples' (HOT) optimization improves UPDATE performance. Which specific set of conditions must be met for a HOT update to occur?
- Which native command-line utility is used to execute SQL queries and manage PostgreSQL databases from a terminal session?
- What is the specific purpose of 'Freezing' a row (modifying its `xmin` status) during a major VACUUM operation?
- In the context of PostgreSQL storage management, what is the primary objective of the `VACUUM` command?