Skip to content

Commit 1a3c737

Browse files
committed
vc_getrels(p, VacRelP) returns NIL for special relations (indices,
sequences,...) and vc_delhilowstats(NULL->vrl_relid) ...
1 parent 2030cbd commit 1a3c737

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/backend/commands/vacuum.c

Lines changed: 8 additions & 5 deletions
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.26 1997/03/10 15:08:57 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.27 1997/04/02 03:48:01 vadim Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -219,10 +219,13 @@ vc_vacuum(NameData *VacRelP)
219219
/* get list of relations */
220220
vrl = vc_getrels(p, VacRelP);
221221

222-
if (VacRelP != NULL)
223-
vc_delhilowstats(vrl->vrl_relid);
224-
else
225-
vc_delhilowstats(InvalidOid);
222+
if ( vrl != NULL )
223+
{
224+
if (VacRelP != NULL)
225+
vc_delhilowstats(vrl->vrl_relid);
226+
else
227+
vc_delhilowstats(InvalidOid);
228+
}
226229

227230
/* vacuum each heap relation */
228231
for (cur = vrl; cur != (VRelList) NULL; cur = cur->vrl_next)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy