Log Message:
-----------
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.
Tags:
----
REL8_2_STABLE
Modified Files:
--------------
pgsql/contrib/cube:
cube.c (r1.30 -> r1.30.2.1)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/cube/cube.c.diff?r1=1.30&r2=1.30.2.1)
cubedata.h (r1.7 -> r1.7.2.1)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/cube/cubedata.h.diff?r1=1.7&r2=1.7.2.1)
---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster