"Andreas 'ads' Scherbaum" <adsmail(at)wars-nicht(dot)de> writes:
> the small attached patch changes the error message for a blocked
> database in case there are prepared transactions.
Isn't this duplicative of the errdetail_busy_db code? And anyway
I do not see a reason not to consider prepared transactions as
"other users".
regards, tom lane