Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1a3c737

Browse files
committed
vc_getrels(p, VacRelP) returns NIL for special relations (indices,
sequences,...) and vc_delhilowstats(NULL->vrl_relid) ...
1 parent2030cbd commit1a3c737

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)

[8]ページ先頭

©2009-2025 Movatter.jp