|
7 | 7 | *
|
8 | 8 | *
|
9 | 9 | * 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 $ |
11 | 11 | *
|
12 | 12 | *-------------------------------------------------------------------------
|
13 | 13 | */
|
@@ -103,8 +103,6 @@ static int vc_cmp_blk(char *left, char *right);
|
103 | 103 | static int vc_cmp_offno(char *left, char *right);
|
104 | 104 | static bool vc_enough_space(VPageDescr vpd, Size len);
|
105 | 105 |
|
106 |
| -void test(Oid relid); |
107 |
| - |
108 | 106 | void
|
109 | 107 | vacuum(char *vacrel, bool verbose, bool analyze, List *va_spec)
|
110 | 108 | {
|
@@ -331,9 +329,6 @@ vc_getrels(NameData *VacRelP)
|
331 | 329 |
|
332 | 330 | cur->vrl_relid = tuple->t_oid;
|
333 | 331 | cur->vrl_next = (VRelList) NULL;
|
334 |
| - |
335 |
| - test(tuple->t_oid); |
336 |
| - |
337 | 332 | }
|
338 | 333 | if (found == false)
|
339 | 334 | elog(NOTICE, "Vacuum: table not found");
|
@@ -2250,29 +2245,3 @@ vc_enough_space(VPageDescr vpd, Size len)
|
2250 | 2245 | return false;
|
2251 | 2246 |
|
2252 | 2247 | } /* 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