From: Bruce Momjian Date: Sun, 9 Mar 1997 07:12:36 +0000 (+0000) Subject: Fix vacuum crash Vadim found. X-Git-Tag: REL6_1~501 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8023a00bdd7bc73f15032666e6ac87d4de99b47;p=postgresql Fix vacuum crash Vadim found. --- diff --git a/src/backend/commands/vacuum.c b/src/backend/commands/vacuum.c index f692fcdedc..b7e8ecbfea 100644 --- a/src/backend/commands/vacuum.c +++ b/src/backend/commands/vacuum.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.23 1997/03/07 00:59:05 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.24 1997/03/09 07:12:36 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1602,6 +1602,7 @@ vc_attrstats(Relation onerel, VacAttrStats *vacattrstats, HeapTuple htup) } if (stats->guess1_cnt > stats->best_cnt) { swapDatum(stats->best,stats->guess1); + swapInt(stats->best_len,stats->guess1_len); swapLong(stats->best_cnt,stats->guess1_cnt); stats->guess1_hits = 1; stats-> guess2_hits = 1;