Any objections adding the below to postgres.h?
#define VARLEN(PTR) (VARSIZE(PTR) - VARHDRSZ)
It adds a little more abstraction and cleans up userland code.
-- Andrew ChernoweSilo, LLCevery bit countshttp://www.esilo.com/