More Info:

Ensure that the log_lock_waits database flag for Cloud SQL PostgreSQL instance is set to on.

Risk Level

Medium

Address

Security

Compliance Standards

SOC2

Triage and Remediation

Remediation

To remediate the PostgreSQL Log Lock Waits Flag Should Be Disabled misconfiguration in GCP using GCP console, please follow these steps:

  1. Open the GCP Console and navigate to the Cloud SQL instances page.

  2. Select the instance that you want to remediate.

  3. Click on the Edit button at the top of the page.

  4. Scroll down to the Flags section and click on the Add database flag button.

  5. In the Name field, enter log_lock_waits and in the Value field, enter off.

  6. Click on the Save button at the bottom of the page to save the changes.

  7. Wait for a few minutes for the changes to take effect.

Once the changes have been applied, the PostgreSQL Log Lock Waits Flag will be disabled and the misconfiguration will be remediated.