Commit 74bd93d5 authored by Vadim B. Mikheev's avatar Vadim B. Mikheev

Not understandable fix of strange bug in vacuum statistic functions.

parent 83978e1e
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.20 1997/02/18 04:13:57 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.21 1997/03/06 11:41:09 vadim Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -1633,8 +1633,8 @@ vc_bucketcpy(AttributeTupleForm attr, Datum value, Datum *bucket, int16 *bucket_ ...@@ -1633,8 +1633,8 @@ vc_bucketcpy(AttributeTupleForm attr, Datum value, Datum *bucket, int16 *bucket_
if (*bucket_len != 0) if (*bucket_len != 0)
pfree(DatumGetPointer(*bucket)); pfree(DatumGetPointer(*bucket));
*bucket = PointerGetDatum(palloc(len)); *bucket = PointerGetDatum(palloc(len));
*bucket_len = len;
} }
*bucket_len = len;
memmove(DatumGetPointer(*bucket), DatumGetPointer(value), len); memmove(DatumGetPointer(*bucket), DatumGetPointer(value), len);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment