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

Teodor Sigaev <teodor@sigaev.ru>

Commit: 2afb01dbde46b985d01d44122e441fcf66b22e78
Author: Teodor Sigaev <teodor@sigaev.ru>
Date: 2007-03-07T21:21:12Z
Releases: 8.3.0
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