Re: problem with splitting a string

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: problem with splitting a string
Дата
Msg-id 12252.1249487688@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: problem with splitting a string  (Werner Echezuria <wercool@gmail.com>)
Ответы Re: problem with splitting a string  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
Werner Echezuria <wercool@gmail.com> writes:
> Well, I use TextDatumGetCString in the main file, but it remains with the
> weird characters.

Hmm, no ideas then.  Your interface code looks fine (making parse_str
const seems a bit strange, but it's not related to the problem at hand).
Given that the problems appear at token boundaries I'd guess that re2c
isn't behaving the way you expect, but I'm not familiar with that tool
so I can't give any specific advice.

> About the PS: Ok, I understand that if I want that you include this as a
> contrib module I need to use bison/flex, I never thought about it, but I now
> have a couple of questions:
> What are the chances to really include it in PostgreSQL as a contrib module?
> Are there any requirement I have to follow?

Well, it'd mainly be a question of whether there's enough interest out
there, which I can't judge.  From a project standpoint we just require
that it be BSD-licensed and not impose any undue new burden on
maintainers (thus not wanting new build tools), but beyond that it's a
matter of how many people might use it.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Werner Echezuria
Дата:
Сообщение: Re: problem with splitting a string
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: problem with splitting a string