Steve Horn <steve@stevehorn.cc> writes:
> Restarted the PG service before reading your email, so I can't verify - but
> your idea about uncomitted prepared transactions may be the culprit.
A prepared transaction would persist through a restart, so if your
problem is now gone then I think we can eliminate that theory. What
seems most likely to me now is that you had some client that was sitting
on a lot of AccessShare locks in an open transaction.
regards, tom lane