Skip to content

Commit 6799af7

Browse files
committed
Reverse out vacuum change.
1 parent 2ac3173 commit 6799af7

File tree

1 file changed

+1
-32
lines changed

1 file changed

+1
-32
lines changed

src/backend/commands/vacuum.c

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.86 1998/10/09 21:28:40 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.87 1998/10/09 21:31:34 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -103,8 +103,6 @@ static int vc_cmp_blk(char *left, char *right);
103103
static int vc_cmp_offno(char *left, char *right);
104104
static bool vc_enough_space(VPageDescr vpd, Size len);
105105

106-
void test(Oid relid);
107-
108106
void
109107
vacuum(char *vacrel, bool verbose, bool analyze, List *va_spec)
110108
{
@@ -331,9 +329,6 @@ vc_getrels(NameData *VacRelP)
331329

332330
cur->vrl_relid = tuple->t_oid;
333331
cur->vrl_next = (VRelList) NULL;
334-
335-
test(tuple->t_oid);
336-
337332
}
338333
if (found == false)
339334
elog(NOTICE, "Vacuum: table not found");
@@ -2250,29 +2245,3 @@ vc_enough_space(VPageDescr vpd, Size len)
22502245
return false;
22512246

22522247
} /* vc_enough_space */
2253-
2254-
2255-
void test(Oid relid)
2256-
{
2257-
Relation rd;
2258-
HeapTuple rtup,
2259-
ctup;
2260-
Buffer buffer;
2261-
2262-
/*
2263-
* update number of tuples and number of pages in pg_class
2264-
*/
2265-
ctup = SearchSysCacheTupleCopy(RELOID,
2266-
ObjectIdGetDatum(relid),
2267-
0, 0, 0);
2268-
if (!HeapTupleIsValid(ctup))
2269-
elog(ERROR, "pg_class entry for relid %d vanished during vacuuming",
2270-
relid);
2271-
2272-
rd = heap_openr(RelationRelationName);
2273-
2274-
/* get the buffer cache tuple */
2275-
rtup = heap_fetch(rd, SnapshotNow, &ctup->t_ctid, &buffer);
2276-
pfree(ctup);
2277-
heap_close(rd);
2278-
}

0 commit comments

Comments
 (0)