Milos Findura <findura(at)gmail(dot)com> writes:> where can be problem?
Presumably, one statement or the other is inside a transaction thatalready had a lower-grade lock on the target table.
regards, tom lane