From 9c4eceb4e35e793b0ff882907755618371aecc8b Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 19 Aug 1998 15:47:36 +0000 Subject: Fix for vacuum updating problem. --- src/backend/commands/vacuum.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/backend/commands') diff --git a/src/backend/commands/vacuum.c b/src/backend/commands/vacuum.c index bf2752dfa92..7b922e09504 100644 --- a/src/backend/commands/vacuum.c +++ b/src/backend/commands/vacuum.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.70 1998/08/19 02:01:56 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.71 1998/08/19 15:47:35 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -39,6 +39,7 @@ #include "storage/bufpage.h" #include "storage/shmem.h" #include "storage/smgr.h" +#include "storage/itemptr.h" #include "storage/lmgr.h" #include "utils/builtins.h" #include "utils/inval.h" @@ -1883,13 +1884,11 @@ vc_updstats(Oid relid, int npages, int ntups, bool hasindex, VRelStats *vacrelst } /* XXX -- after write, should invalidate relcache in other backends */ -#ifdef NOT_USED - WriteNoReleaseBuffer(&rtup->t_ctid); /* heap_endscan release scan' buffers ? */ -#endif + WriteNoReleaseBuffer(ItemPointerGetBlockNumber(&rtup->t_ctid)); /* * invalidating system relations confuses the function cache of - * pg_operator and pg_opclass + * pg_operator and pg_opclass, bjm */ if (!IsSystemRelationName(pgcform->relname.data)) RelationInvalidateHeapTuple(rd, rtup); -- cgit v1.2.3