Re: VARSIZE - why omit VARLEN? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: VARSIZE - why omit VARLEN?
Date
Msg-id 23652.1232258932@sss.pgh.pa.us
Whole thread Raw
In response to VARSIZE - why omit VARLEN?  (Andrew Chernow <ac@esilo.com>)
Responses Re: VARSIZE - why omit VARLEN?  (Andrew Chernow <ac@esilo.com>)
List pgsql-hackers
Andrew Chernow <ac@esilo.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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_dump versus views and opclasses
Next
From: Tom Lane
Date:
Subject: Re: Statement-level triggers and inheritance