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

From Brendan Jurd
Subject Re: [PATCHES] Text <-> C string
Date
Msg-id 37ed240d0803281240g73e4433i4cb356410045f5c7@mail.gmail.com
Whole thread Raw
In response to Re: [PATCHES] Text <-> C string  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [PATCHES] Text <-> C string  ("Brendan Jurd" <direvus@gmail.com>)
List pgsql-hackers
On 29/03/2008, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 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.
>

Hmm, okay.  My original submission did include a few such changes; for
example, in xml_in and xml_out_internal I saw that the conversion
between xmltype and cstring was identical to the text conversion, so I
went ahead and used the text functions.  Feedback upthread suggested
that it was okay to go ahead with casting in identical cases. [1]

I saw that these changes made it into the commit, so I assumed that it
was the right call.

If we don't want to meddle with xmltype/bytea/VarChar at all, we'll
have to revert those changes, and I'll have to seriously scale back
the cleanup patch I was about to post.

Regards,
BJ

[1] http://archives.postgresql.org/pgsql-hackers/2007-09/msg01094.php

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] Text <-> C string
Next
From: Tom Lane
Date:
Subject: Re: Is psql command line interface broken on HEAD?