Re: C function woes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: C function woes
Дата
Msg-id 10631.982776207@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: C function woes  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-general
Peter Eisentraut <peter_e@gmx.net> writes:
> Is it good practice to scribble around in data type internals?  Why not

> text *
> hello()
> {
>     return textin("hello world");
> }

Well, he could do that if he wanted, but that doesn't teach him anything
about how to prepare his own datatype, which I suppose is the real point
of the exercise.

(Actually, the above code will be *less* portable to 7.1 than the other
version, because the calling convention of textin() changed ...)

            regards, tom lane

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Weird indices
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Re: Deferred NOT NULL?