Błąd: ERROR: deadlock detected DETAIL: Process 266404 waits for ExclusiveLock on tuple (0,22) of relation 31499 of database 24510; blocked by process 266400. Process 266400 waits for ShareLock on transaction 18439060; blocked by process 266006. Process 266006 waits for ShareLock on transaction 18439165; blocked by process 266383. Process 266383 waits for ExclusiveLock on tuple (0,22) of relation 31499 of database 24510; blocked by process 266404. HINT: See server log for query details.