|
7 | 7 | * |
8 | 8 | * |
9 | 9 | * IDENTIFICATION |
10 | | - * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.11 1996/11/29 10:27:59 vadim Exp $ |
| 10 | + * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.12 1997/01/05 10:58:15 vadim Exp $ |
11 | 11 | * |
12 | 12 | *------------------------------------------------------------------------- |
13 | 13 | */ |
@@ -422,7 +422,11 @@ _vc_vacone (VRelList curvrl) |
422 | 422 | if (Fvpl.vpl_npages>0 )/* Try to shrink heap */ |
423 | 423 | _vc_rpfheap (curvrl,onerel,&Vvpl,&Fvpl,nindices,Irel); |
424 | 424 | elseif (Vvpl.vpl_npages>0 )/* Clean pages from Vvpl list */ |
| 425 | + { |
| 426 | +if (Irel!= (Relation*)NULL ) |
| 427 | +_vc_clsindices (nindices,Irel); |
425 | 428 | _vc_vacheap (curvrl,onerel,&Vvpl); |
| 429 | + } |
426 | 430 |
|
427 | 431 | /* ok - free Vvpl list of reapped pages */ |
428 | 432 | if (Vvpl.vpl_npages>0 ) |
|