Complete the code to set work_mem to 16MB for the current session.
SET work_mem = [1];Setting work_mem to '16MB' allocates 16 megabytes of memory for query operations in the current session.
Complete the code to set effective_cache_size to 4GB in the postgresql.conf file.
effective_cache_size = [1]Setting effective_cache_size to '4GB' means PostgreSQL estimates 4GB of OS disk cache available for query planning.
Fix the error in the command to set work_mem to 32MB for the current session.
SET work_mem = [1]The value must be a string with quotes, like '32MB', to be valid in the SET command.
Fill both blanks to create a query that shows current work_mem and effective_cache_size settings.
SHOW [1]; SHOW [2];
The SHOW command displays the current value of a configuration parameter. Here, we want to see work_mem and effective_cache_size.
Fill all three blanks to write a SQL command that sets work_mem to 8MB, effective_cache_size to 2GB, and then shows both settings.
SET work_mem = [1]; SET effective_cache_size = [2]; SHOW [3];
This sequence sets work_mem to 8MB, effective_cache_size to 2GB, and then shows the current value of effective_cache_size.