Skip to content

Commit 068a4c5

Browse files
committed
Closing opened indices.
1 parent 8fa5394 commit 068a4c5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/backend/commands/vacuum.c

Lines changed: 5 additions & 1 deletion
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.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 $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -422,7 +422,11 @@ _vc_vacone (VRelList curvrl)
422422
if ( Fvpl.vpl_npages > 0 ) /* Try to shrink heap */
423423
_vc_rpfheap (curvrl, onerel, &Vvpl, &Fvpl, nindices, Irel);
424424
else if ( Vvpl.vpl_npages > 0 ) /* Clean pages from Vvpl list */
425+
{
426+
if ( Irel != (Relation*) NULL )
427+
_vc_clsindices (nindices, Irel);
425428
_vc_vacheap (curvrl, onerel, &Vvpl);
429+
}
426430

427431
/* ok - free Vvpl list of reapped pages */
428432
if ( Vvpl.vpl_npages > 0 )

0 commit comments

Comments
 (0)