aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2013-03-15 12:26:26 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2013-03-15 12:26:26 -0400
commitdcafdbcde1baf256891be6af77868b84889b435d (patch)
treef1c13fc6189af0d2df6270bb0a8f770183daeba4 /src/backend/access/gist
parent73e7025bd8eed941a068f0a7a71e02dca8d38d1c (diff)
downloadpostgresql-dcafdbcde1baf256891be6af77868b84889b435d.tar.gz
postgresql-dcafdbcde1baf256891be6af77868b84889b435d.zip
Improve error reporting in code that checks for buffer refcount leaks.
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
Diffstat (limited to 'src/backend/access/gist')
0 files changed, 0 insertions, 0 deletions