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

Enabling log_lock_waits flag will enable logging of any session waits that take longer than deadlock_timeout. This feature is recommended in order to increase logging details for your PostgreSQL database instances, and it might help to identify poor performance.