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

From Andrew Chernow
Subject VARSIZE - why omit VARLEN?
Date
Msg-id 49729386.9050207@esilo.com
Whole thread Raw
Responses Re: VARSIZE - why omit VARLEN?
List pgsql-hackers
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/


pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: Fixes for compiler warnings
Next
From: Tom Lane
Date:
Subject: Re: pg_dump versus views and opclasses