Fix handling of non-reference counted TupleDescs in gapfill

Use ReleaseTupleDesc instead of DecrTupleDescRefCount in gapfill
interpolate because the latter does not account for non-reference
counted TupleDescs.
This commit is contained in:
Sven Klemm 2020-08-29 17:29:52 +02:00 committed by Sven Klemm
parent 1eceee3151
commit 66f80d159b

View File

@ -142,7 +142,7 @@ gapfill_fetch_sample(GapFillState *state, GapFillInterpolateColumnState *column,
sample->value = datumCopy(value, column->base.typbyval, column->base.typlen);
}
DecrTupleDescRefCount(tupdesc);
ReleaseTupleDesc(tupdesc);
}
/* Calculate the interpolation using numerics, returning the result as a numeric datum */