diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-08-08 19:17:23 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-08-08 19:17:23 +0000 |
commit | 4568e0f791f7e838409e1ef93d3513a6314b835e (patch) | |
tree | f35fc0900e984a6ec9fe0861753330df613ed41c /src/backend/storage/buffer/bufmgr.c | |
parent | be27a2012311af1ad3254b2d17df28f7f4ddd5c5 (diff) | |
download | postgresql-4568e0f791f7e838409e1ef93d3513a6314b835e.tar.gz postgresql-4568e0f791f7e838409e1ef93d3513a6314b835e.zip |
Modify AtEOXact_CatCache and AtEOXact_RelationCache to assume that the
ResourceOwner mechanism already released all reference counts for the
cache entries; therefore, we do not need to scan the catcache or relcache
at transaction end, unless we want to do it as a debugging crosscheck.
Do the crosscheck only in Assert mode. This is the same logic we had
previously installed in AtEOXact_Buffers to avoid overhead with large
numbers of shared buffers. I thought it'd be a good idea to do it here
too, in view of Kari Lavikka's recent report showing a real-world case
where AtEOXact_CatCache is taking a significant fraction of runtime.
Diffstat (limited to 'src/backend/storage/buffer/bufmgr.c')
0 files changed, 0 insertions, 0 deletions