Re: The Curious Case of the Table-Locking UPDATE Query

2021-07-08 Thread Emiliano Saenz
release and we edit the database structure, truncate tables, etc. Best regards, On Thu, Jul 8, 2021 at 2:42 PM hubert depesz lubaczewski wrote: > On Thu, Jul 08, 2021 at 02:35:33PM -0300, Emiliano Saenz wrote: > > Attach the files. > > The pg_locks file doesn't show any acces

The Curious Case of the Table-Locking UPDATE Query

2021-07-05 Thread Emiliano Saenz
Hello! We have a huge POSTGRES 9.4 database in the production environment (several tables have more than 100.000.00 registers). Last two months we have had problems with CPU utilization. Debugging the locks (on pg_locks) we notice that sometimes simple UPDATE (by primary key) operation takes out AC