Re: VARSIZE - why omit VARLEN?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Chernow <ac(at)esilo(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: VARSIZE - why omit VARLEN?
Date: 2009-01-18 06:08:52
Message-ID: 23652.1232258932@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-01-18 06:15:42 Re: Autovacuum daemon terminated by signal 11
Previous Message Tom Lane 2009-01-18 06:02:01 Re: pg_dump versus views and opclasses