1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-03 22:24:49 +03:00

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

View File

@ -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)
/* 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)