Re: US Telephone Number Type

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: US Telephone Number Type
Дата
Msg-id 20060711052749.GA32706@surnet.cl
обсуждение исходный текст
Ответ на Re: US Telephone Number Type  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: US Telephone Number Type  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-general
Tom Lane wrote:
> "Karen Hill" <karen_hill22@yahoo.com> writes:
> > I did a quick google and someone mentioned that input and output
> > functions need to be written in C.  Is that still the case?
>
> Yeah, pretty much.  The main problem is that such functions need to deal
> with whatever physical on-disk format you've chosen for the datatype,
> and most of our PLs don't offer bit-level memory access.

Is bit-level memory access the actual problem?  I would think that at
least PL/Perl can offer that pretty easily using pack() or something
like that.  Not that I've actually tried using it.

But I think the main problem may be getting our calling conventions
right.  I mean, how would you do a PG_GETARG_BOOL() or stuff like that?
Maybe if we offered PG_GETARG_DATUM and PG_RETURN_DATUM equivalents in
PL/Perl we could offer I/O functions there.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: "A. Kretschmer"
Дата:
Сообщение: Re: A function which returns all rolname from pg_roles.
Следующее
От: "Christian Rengstl"
Дата:
Сообщение: Re: Problem with COPY