Re: patch adding new regexp functions
| От | Tom Lane |
|---|---|
| Тема | Re: patch adding new regexp functions |
| Дата | |
| Msg-id | 26219.1174541573@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: patch adding new regexp functions (Jeremy Drake <pgsql@jdrake.com>) |
| Ответы |
Re: patch adding new regexp functions
|
| Список | pgsql-patches |
Jeremy Drake <pgsql@jdrake.com> writes:
> I could not find such a thing using ctags, nor TextPGetDatum(). I looked
> at PG_RETURN_TEXT_P and it just uses PG_RETURN_POINTER, which in turn uses
> PointerGetDatum. If there is such a thing, it is well camoflaged...
AFAIR, the reason there's no TextPGetDatum (and ditto for lots of other
datatypes) is lack of obvious usefulness. A function dealing with a
"text *" doesn't normally have reason to convert that to a Datum until
it returns --- and at that point PG_RETURN_TEXT_P is the thing to use.
Do you have a counterexample, or does this just suggest that the regexp
function patch needs some refactoring?
regards, tom lane
В списке pgsql-patches по дате отправления: