Athough cube is a varlena type, nowhere was a detoasting of cube's value, so
Teodor Sigaev <teodor@sigaev.ru>
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
| Path | Change | +/− |
|---|---|---|
| contrib/cube/cube.c | modified | +161 −112 |
| contrib/cube/cubedata.h | modified | +5 −1 |