Re: Text <-> C string

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Text <-> C string
Дата
Msg-id 877imjrdq1.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Text <-> C string  ("Brendan Jurd" <direvus@gmail.com>)
Ответы Re: Text <-> C string  ("Brendan Jurd" <direvus@gmail.com>)
Re: Text <-> C string  ("Brendan Jurd" <direvus@gmail.com>)
Список pgsql-hackers
"Brendan Jurd" <direvus@gmail.com> writes:

> Surely having the exact same four lines of code written out in dozens
> of places is a Bad Thing, but perhaps there is some reasoning behind
> this that I am missing?

The canonical way to do it is with

DatumGetCString(DirectFunctionCall1(textout, t))


--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: HOT is applied
Следующее
От: "Brendan Jurd"
Дата:
Сообщение: Re: Text <-> C string