LWLock:LockManager

This event occurs when a process is waiting to access the internal shared memory structure that tracks locks on tables and indexes
It is not waiting for a row lock (like a standard blocking update); it is waiting for the right to read/write the list of who holds what locks.
This is effectively a CPU scaling bottleneck. It happens when many processes are trying to acquire or release locks at the exact same microsecond,
causing a traffic jam at the "Lock Manager's Front Desk."
This is an area where PostgreSQL 18 has made significant improvements.

Why it is happening (Root Causes)

Further Diagnosis

Use SELECT * FROM pg_locks to check the lock status

Resolution

Additional References