Lock waits are often an indication of poor performance and often an indicator of a potential denial of service vulnerability, therefore occurrences should be logged for analysis.
Issues leading to denial of service may not be identified.
Enable lock wait logging.
The following example will fail the google-sql-pg-log-lock-waits check.
The following example will pass the google-sql-pg-log-lock-waits check.