Re: help defining a basic type operator

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: help defining a basic type operator
Дата
Msg-id 19752.1534778962@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: help defining a basic type operator  (Luca Ferrari <fluca1978@gmail.com>)
Список pgsql-general
Luca Ferrari <fluca1978@gmail.com> writes:
> Fixing the type creation into:

> CREATE TYPE hfsize (
>        internallength = 16,
>        input  = hfsize_input_function,
>        output = hfsize_output_function
> );

> solved the problem, so it was a length mismatch.

You really need to specify double alignment too; IIRC the default
assumption is only "int" alignment.  Intel processors will usually let you
get away with being sloppy about that, but it's still wrong (and there
*are* cases where Intel will complain too).

            regards, tom lane


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

Предыдущее
От: Luca Ferrari
Дата:
Сообщение: Re: help defining a basic type operator
Следующее
От: Nicolas Paris
Дата:
Сообщение: Re: Multiple COPY on the same table