diff options
author | Bruce Momjian <bruce@momjian.us> | 1998-10-12 00:53:42 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1998-10-12 00:53:42 +0000 |
commit | beac8c1c4609eb7dcb24e5352c66f3b70682d331 (patch) | |
tree | af0d9e4eea68bee99986e522374dc26f816e34bd /src/backend/utils/cache/inval.c | |
parent | 5a61590e4874c0f67dbe37b573edac3e984e99d7 (diff) |
Fix for vacuum and cache use. Fix for BSDI 4.0.
Diffstat (limited to 'src/backend/utils/cache/inval.c')
-rw-r--r-- | src/backend/utils/cache/inval.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/src/backend/utils/cache/inval.c b/src/backend/utils/cache/inval.c index d21540776de..0517e1a0cda 100644 --- a/src/backend/utils/cache/inval.c +++ b/src/backend/utils/cache/inval.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/cache/inval.c,v 1.16 1998/09/01 04:33:00 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/cache/inval.c,v 1.17 1998/10/12 00:53:34 momjian Exp $ * * Note - this code is real crufty... * @@ -74,7 +74,6 @@ typedef InvalidationMessageData *InvalidationMessage; * ---------------- */ static LocalInvalid Invalid = EmptyLocalInvalid; /* XXX global */ -static bool RefreshWhenInvalidate = false; Oid MyRelationRelationId = InvalidOid; Oid MyAttributeRelationId = InvalidOid; @@ -573,20 +572,6 @@ RegisterInvalid(bool send) } /* - * SetRefreshWhenInvalidate -- - * Causes the local caches to be immediately refreshed iff true. - */ -void -SetRefreshWhenInvalidate(bool on) -{ -#ifdef INVALIDDEBUG - elog(DEBUG, "RefreshWhenInvalidate(%d) called", on); -#endif /* defined(INVALIDDEBUG) */ - - RefreshWhenInvalidate = on; -} - -/* * RelationIdInvalidateHeapTuple -- * Causes the given tuple in a relation to be invalidated. * @@ -641,9 +626,11 @@ RelationInvalidateHeapTuple(Relation relation, HeapTuple tuple) tuple, RelationIdRegisterLocalInvalid); +#ifdef NOT_USED if (RefreshWhenInvalidate) /* what does this do? bjm 1998/08/20 */ RelationInvalidateCatalogCacheTuple(relation, tuple, (void (*) ()) NULL); +#endif } |