Dear All,
Thanks for your support.
Could you please share your opinion for deadlock resolution.
Process 5764 waits for AccessShareLock on relation 16459 of database 16385; blocked by process 4970.
Process 4970 waits for ShareLock on relation 16502 of database 16385; blocked by process 5764.
It means we have two processes that are each waiting for locks the other have.
process 5764 is waiting for relation (table) with OID 16459(table2_primary_key), that table is blocked by process 4970
andprocess 4970 is waiting for a lock on another table, OID 16502(table1), which the first process has a lock on.
Process 5764: INSERT INTO table2 ( id , roll_number, name) VALUES( '1', '4','abc' )
Process 4970: REINDEX TABLE table1, table2 etc..
How to resolve this problem?
Regards,
Yogesh