Are you having locks where the type = extend? If so, this is a symptom of slow inserts due to many concurrent connections trying to insert into the same table at the same time. Each insert request may result in an extend lock (8k extension), which blocks other writers. What normally happens is that these extend locks happen so fast that you hardly ever see them in the pg_locks table, except in the case where many concurrent connections are trying to do inserts into the same table. Regards, Michael Vitale Sushant Pawar wrote on 10/5/2020 1:38 PM:
|