Re: Variable length varlena headers redux - Mailing list pgsql-hackers

From Gregory Stark
Subject Re: Variable length varlena headers redux
Date
Msg-id 8764a680pu.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: Variable length varlena headers redux  (Bruce Momjian <bruce@momjian.us>)
Responses Re: Variable length varlena headers redux  (Bruce Momjian <bruce@momjian.us>)
Re: Variable length varlena headers redux  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
"Bruce Momjian" <bruce@momjian.us> writes:

>> But I'm surprised, I had the impression that you were reluctant to consider
>> memcpying all the data all the time.
>
> Uh, if the macros can read 1 and 4-byte headers, why do we need to
> allocate memory for them?

Because the macros can't read 1 and 4-byte headers. If they could we would
have the problem with VARDATA for code sites that write to the data before
they write the size.

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Marc Munro
Date:
Subject: Re: Reducing likelihood of deadlocks (was referential Integrity and SHARE locks)
Next
From: Bruce Momjian
Date:
Subject: Re: Variable length varlena headers redux