Steve Clark <steve(dot)clark(at)netwolves(dot)com> writes:
> I am occasionally seeing the following error:
> ALERT 3 sqlcode=-400 errmsg=deadlock detected on line 3351
This isn't nearly enough information to determine what is going on.
But if that is a report of a server-detected deadlock error, there
should be more information about it in the postmaster log.
regards, tom lane