diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-03-25 18:30:28 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-03-25 18:30:28 +0000 |
| commit | 08890b407e976e4871f2024ed5a3071d0fa510a6 (patch) | |
| tree | ef1e0c389fef730eeedee91f71753e8e9867158e /src/include/utils/catcache.h | |
| parent | 6b7ef076b52f89178ab567f49170786cb2d83645 (diff) | |
| download | postgresql-08890b407e976e4871f2024ed5a3071d0fa510a6.tar.gz | |
Fix resource owner code to generate catcache and relcache leak warnings
when open references remain during normal cleanup of a resource owner.
This restores the system's ability to warn about leaks to what it was
before 8.0. Not really a user-level bug, but helpful for development.
Diffstat (limited to 'src/include/utils/catcache.h')
| -rw-r--r-- | src/include/utils/catcache.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/utils/catcache.h b/src/include/utils/catcache.h index f08212d3f3..a9e6f19b9c 100644 --- a/src/include/utils/catcache.h +++ b/src/include/utils/catcache.h @@ -13,7 +13,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/catcache.h,v 1.52 2004/12/31 22:03:45 pgsql Exp $ + * $PostgreSQL: pgsql/src/include/utils/catcache.h,v 1.53 2005/03/25 18:30:28 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -187,4 +187,7 @@ extern void PrepareToInvalidateCacheTuple(Relation relation, HeapTuple tuple, void (*function) (int, uint32, ItemPointer, Oid)); +extern void PrintCatCacheLeakWarning(HeapTuple tuple); +extern void PrintCatCacheListLeakWarning(CatCList *list); + #endif /* CATCACHE_H */ |
