Re: [PATCHES] Text <-> C string - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCHES] Text <-> C string
Date
Msg-id 13684.1206732381@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCHES] Text <-> C string  ("Brendan Jurd" <direvus@gmail.com>)
Responses Re: [PATCHES] Text <-> C string
List pgsql-hackers
"Brendan Jurd" <direvus@gmail.com> writes:
> On 26/03/2008, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> There are no textout/textin calls left, but I may have missed some
>> places that were doing it the hard way with direct palloc/memcpy
>> manipulations.  It might be worth trolling all the VARDATA() references
>> to see if any more are easily replaceable.

> I think there are perhaps a dozen such sites, and I hope to submit a
> cleanup patch that gets rid of these soon.
> I did come across one site I'm not sure about in utils/adt/xml.c:291

I intentionally didn't touch xml.c, nor anyplace that is not dealing
in text, even if it happens to be binary-compatible with text.

            regards, tom lane

pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: [PATCHES] Implemented current_query
Next
From: "Brendan Jurd"
Date:
Subject: Re: [PATCHES] Text <-> C string