On 2015-08-31 08:03:51 +0000, immortaldragonm(at)gmail(dot)com wrote:
> I think, that postgres must detect deadlock and rollback one of transaction
> with error. But it hang forever. Why? i think it's bug.
It's not a deadlock postgres can handle - the blocking part is in your
application. If these were submitted by two independent clients it'd
work.
Greetings,
Andres Freund