Commit 1a3c7371 authored by Vadim B. Mikheev's avatar Vadim B. Mikheev

vc_getrels(p, VacRelP) returns NIL for special relations (indices,

sequences,...) and vc_delhilowstats(NULL->vrl_relid) ...
parent 2030cbdf
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.26 1997/03/10 15:08:57 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.27 1997/04/02 03:48:01 vadim Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -219,10 +219,13 @@ vc_vacuum(NameData *VacRelP) ...@@ -219,10 +219,13 @@ vc_vacuum(NameData *VacRelP)
/* get list of relations */ /* get list of relations */
vrl = vc_getrels(p, VacRelP); vrl = vc_getrels(p, VacRelP);
if (VacRelP != NULL) if ( vrl != NULL )
vc_delhilowstats(vrl->vrl_relid); {
else if (VacRelP != NULL)
vc_delhilowstats(InvalidOid); vc_delhilowstats(vrl->vrl_relid);
else
vc_delhilowstats(InvalidOid);
}
/* vacuum each heap relation */ /* vacuum each heap relation */
for (cur = vrl; cur != (VRelList) NULL; cur = cur->vrl_next) for (cur = vrl; cur != (VRelList) NULL; cur = cur->vrl_next)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment