Sample Exam Questions

From the objective of OSS-DB Exam Gold
- Performance Tuning - Parameters related to performance

Sample Question

3.12

Choose the one INCORRECT description of a GUC parameter.

  1. shared_buffers sets the size of the shared memory buffers used by the PostgreSQL server.

  2. max_connections sets the maximum number of concurrent client connections allowed to the PostgreSQL server.

  3. work_mem sets the maximum amount of memory used for maintenance tasks like VACUUM and CREATE INDEX.

  4. Setting ssl to on enables SSL connections.

  5. wal_level is a parameter that controls the level of information written to the WAL.

※This sample exam is different from those that appear in the actual OSS-DB Exam.
2025/06/02

Answer and Explanation

The correct answer is C.

work_mem specifies the amount of memory used by each query process for operations like sorting and hashing. Note that complex queries, especially when multiple sessions are active, can consume significantly more memory than the work_mem setting.

maintenance_work_mem specifies the amount of memory used by maintenance operations like VACUUM and CREATE INDEX.

The default values for work_mem and maintenance_work_mem vary depending on the PostgreSQL version; in version 12, they are 4MB and 64MB, respectively.