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 Chernow
eSilo, LLC
every bit counts
http://www.esilo.com/

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to