• Tom Lane's avatar
    Improve error reporting in code that checks for buffer refcount leaks. · dcafdbcd
    Tom Lane authored
    Formerly we just Assert'ed that each refcount was zero, which was quick
    and easy but failed to provide a good overview of what was wrong.
    Change the code so that we'll call PrintBufferLeakWarning() for each
    buffer with a nonzero refcount, and then Assert at the end of the loop.
    This costs nothing in runtime and might ease diagnosis of some bugs.
    
    Greg Smith, reviewed by Satoshi Nagayasu, further tweaked by me
    dcafdbcd
bufmgr.c 88.8 KB