SV-256604r887598_rule
V-256604
SRG-APP-000226-DB-000147
VCPG-70-000014
CAT II
10
At the command prompt, run the following commands for each setting returned as "off" in the check:
# /opt/vmware/vpostgres/current/bin/psql -U postgres -c "ALTER SYSTEM SET <name> TO 'on';"
# /opt/vmware/vpostgres/current/bin/psql -U postgres -c "SELECT pg_reload_conf();"
Note: Substitute <name> with the incorrectly set parameter (fsync, full_page_writes, synchronous_commit).
At the command prompt, run the following command:
# /opt/vmware/vpostgres/current/bin/psql -U postgres -A -t -c "SELECT name,setting FROM pg_settings WHERE name IN ('fsync','full_page_writes','synchronous_commit');"
Expected result:
fsync | on
full_page_writes | on
synchronous_commit | on
If the output does not match the expected result, this is a finding.
V-256604
False
VCPG-70-000014
At the command prompt, run the following command:
# /opt/vmware/vpostgres/current/bin/psql -U postgres -A -t -c "SELECT name,setting FROM pg_settings WHERE name IN ('fsync','full_page_writes','synchronous_commit');"
Expected result:
fsync | on
full_page_writes | on
synchronous_commit | on
If the output does not match the expected result, this is a finding.
M
5521