Andrew Chernow <ac(at)esilo(dot)com> writes:
> Any objections adding the below to postgres.h?
> #define VARLEN(PTR) (VARSIZE(PTR) - VARHDRSZ)
For the most part, you should probably be using VARSIZE_ANY_EXHDR
anyplace that that might be a good idea.
regards, tom lane