Athough cube is a varlena type, nowhere was a detoasting of cube's value, so

Teodor Sigaev <teodor@sigaev.ru>

Commit: 2b1abc8756e973a098943c255c3cbeb2568cfb91
Author: Teodor Sigaev <teodor@sigaev.ru>
Date: 2007-03-07T21:25:18Z
Releases: 8.2.4
Athough cube is a varlena type, nowhere was a detoasting of cube's value, so
fix it.  Add macroses DatumGetNDBOX, PG_GETARG_NDBOX and PG_RETURN_NDBOX.
Backpatch for 8.2 too.

Previous versions use version 0 calling conventions. And fmgr code detoast
values for user-defined functions.

Files

PathChange+/−
contrib/cube/cube.c modified +161 −112
contrib/cube/cubedata.h modified +5 −1