Postgresql easy
Which native command-line utility is used to execute SQL queries and manage PostgreSQL databases from a terminal session?
- A pgAdmin: A cross-platform web interface for graphical database administration.
- B postgres: The backend server engine that handles all data processing and storage.
- C psql: The terminal-based front-end tool for interactive database interaction.
- D pg_base: A specialized utility used for low-level node replication and recovery.
Answer: C. psql: The terminal-based front-end tool for interactive database interaction.
`psql` is the core interactive CLI. It allows for both SQL commands and meta-commands (like `\d`) for inspecting schemas and managing the database cluster efficiently.
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`?
- Which standard PostgreSQL utility is designed to extract a single database into a script or archive file for backup purposes?
- 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?
- 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?