Re: [PATCHES] Text <-> C string

Поиск
Список
Период
Сортировка
От Brendan Jurd
Тема Re: [PATCHES] Text <-> C string
Дата
Msg-id 37ed240d0803281240g73e4433i4cb356410045f5c7@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [PATCHES] Text <-> C string  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [PATCHES] Text <-> C string  ("Brendan Jurd" <direvus@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] Text <-> C string
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Is psql command line interface broken on HEAD?