Błąd: ERROR: deadlock detected DETAIL: Process 107287 waits for ExclusiveLock on tuple (0,22) of relation 31499 of database 24510; blocked by process 106772. Process 106772 waits for ShareLock on transaction 18599565; blocked by process 107290. Process 107290 waits for ShareLock on transaction 18599477; blocked by process 107145. Process 107145 waits for ExclusiveLock on tuple (0,22) of relation 31499 of database 24510; blocked by process 107287. HINT: See server log for query details.