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

sequences,...) and vc_delhilowstats(NULL->vrl_relid) ...
This commit is contained in:
Vadim B. Mikheev 1997-04-02 03:48:01 +00:00
parent 2030cbdf6c
commit 1a3c7371e8
1 changed files with 8 additions and 5 deletions

View File

@ -7,7 +7,7 @@
*
*
* 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)
/* get list of relations */
vrl = vc_getrels(p, VacRelP);
if (VacRelP != NULL)
vc_delhilowstats(vrl->vrl_relid);
else
vc_delhilowstats(InvalidOid);
if ( vrl != NULL )
{
if (VacRelP != NULL)
vc_delhilowstats(vrl->vrl_relid);
else
vc_delhilowstats(InvalidOid);
}
/* vacuum each heap relation */
for (cur = vrl; cur != (VRelList) NULL; cur = cur->vrl_next)