Thanks Chris, Armeen, mike
Further information collected:
1. Deadlock happens randomly with one computer among POS computers. That user uses only one entry screen. He can add records, cannot edit or delete records.
2. That entry screen insert records in 5 tables (datawindows) and updates 6th (summary) table through trigger.
3. Mostly that deadlock doesn't affect workings of other users (other POS / computers). Other uses could operate normally without any issues.
4. Killing the process(es) relevant to that computer solves that issue that time.
I didn't change the default isolation level which is READ COMMITTED. I don't think I need to change this as this looks fine for me.
mike,
So far, this deadlock occurred only in POS computer, which inserts records in the same order (same window).
Happiness Always
BKR Sivaprakash
I did go through that note about deadlock, that PG kills deadlock process. Trying to collect more information by studying the log file. It occurred only in one POS system, 3 times in the span of 6 months. Will come back with more details or solution / issue, if found.