Martijn van Oosterhout <kleptog@svana.org> writes:
> For stuff run from autovacuum, would it be reasonable for the
> automatically run version to just abort if it sees someone doing the
> same thing?
Not especially --- there's no guarantee that the other guy is going to
commit at all. And autovac is only holding one lock at a time so it's
not a factor in the deadlock issue anyway.
regards, tom lane