• Tom Lane's avatar
    Improve CREATE/DROP/RENAME DATABASE so that when failing because the source · 4abd7b49
    Tom Lane authored
    or target database is being accessed by other users, it tells you whether
    the "other users" are live sessions or uncommitted prepared transactions.
    (Indeed, it tells you exactly how many of each, but that's mostly just
    because it was easy to do so.)  This should help forestall the gotcha of
    not realizing that a prepared transaction is what's blocking the command.
    Per discussion.
    4abd7b49
procarray.h 1.82 KB