Re: US Telephone Number Type

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: US Telephone Number Type
Дата
Msg-id 8237.1152589609@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: US Telephone Number Type  ("Karen Hill" <karen_hill22@yahoo.com>)
Ответы Re: US Telephone Number Type  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-general
"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.

If C functions seem like more work than you want to go to for this
problem, I concur with using a domain over text with a regex check
constraint ...

            regards, tom lane

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

Предыдущее
От: "Karen Hill"
Дата:
Сообщение: A function which returns all rolname from pg_roles.
Следующее
От: Joe Conway
Дата:
Сообщение: Re: A function which returns all rolname from pg_roles.