PostgreSQL characteristics
Which statement correctly describes PostgreSQL in terms of its key features?
- It is a closed source, object-oriented database
- It is only available for commercial use
- It only supports relational tables
- It is a powerful, open source, object-relational database system
- It is a lightweight in-memory database
Language used for development
PostgreSQL was primarily written in which programming language?
- Java
- Ruby
- C
- C++
- Python
Original name of PostgreSQL
What was the original name for PostgreSQL when it was first created?
- Ingres
- Pregress
- PreSQL
- Postgress
- Postgres
History of Postgres95
Which of the following statements is true regarding Postgres95?
- It added support for SQL in 1994
- All of the above
- It facilitated the formation of the PostgreSQL Global Development Team
- None of the above
- It was released as Postgres95 in 1995
Listing psql commands
If you want to see a complete list of commands in the PostgreSQL interactive terminal (psql), which command should you use?
- /help
- help
- $help
- u0026help
- ?help
Aborting a transaction
Which syntax correctly aborts the current transaction in PostgreSQL?
- CANCEL TRANSACTION
- ABORT
- ABORT [ WORK | TRANSACTION ]
- ABORT [ TRANSACT ]
- ROLLBACK [ NOW ]
Renaming a procedural language
To change the name of a procedural language, which statement should be used in PostgreSQL?
- ALTER LANGUAGE name RENAME TO new_name
- UPDATE LANGUAGE name RENAME TO new_name
- UPDATE LANG name TO new_name
- RENAME LANGUAGE name TO new_name
- MODIFY LANGUAGE name TO new_name
Modifying triggers
What does the command 'ALTER TRIGGER name ON table RENAME TO new_name' accomplish in PostgreSQL?
- Deletes an existing trigger
- Disables a trigger
- Updates the logic of a trigger
- Changes the name of a trigger
- Inserts a new trigger
Purpose of ANALYZE command
What is the main purpose of running the command 'ANALYZE [ VERBOSE ] [ table [ (column [, ...] ) ] ]' in PostgreSQL?
- Deletes all records from a table
- Starts a transaction block
- Backs up the database schema
- Collects statistics about a database
- Drops a database
Numeric data types
Which of the following represents the types of numeric integers supported by PostgreSQL?
- Only four-byte integers
- Two-byte, four-byte, and eight-byte integers
- Only eight-byte integers
- Two-byte and three-byte integers
- Only two-byte integers
Currency data type
Which PostgreSQL data type is specifically used to store amounts of money with fixed fractional precision?
- binary
- money
- currency
- character
- numeric
Boolean value states
Besides true and false, which third logical state can the PostgreSQL Boolean data type represent?
- error
- unset
- null
- undefined
- unknown
Geometric data types
Geometric data types in PostgreSQL are designed to represent which kind of data?
- Enumerations
- Boolean values
- Two-dimensional spatial objects
- One-dimensional values
- String literals
Network address types
Does PostgreSQL provide data types for storing IPv4, IPv6, and MAC addresses?
- TRUE
- Only IPv4
- Sometimes
- Only IPv6
- FALSE
Bit string types
How many main types of SQL bit types are there in PostgreSQL?
- 5
- 2
- 6
- 4
- 3