Re: help defining a basic type operator

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: help defining a basic type operator
Дата
Msg-id
19752.1534778962@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
help defining a basic type operator Luca Ferrari <fluca1978@gmail.com>
Re: help defining a basic type operator Tom Lane <tgl@sss.pgh.pa.us>
Re: help defining a basic type operator Luca Ferrari <fluca1978@gmail.com>
Re: help defining a basic type operator Tom Lane <tgl@sss.pgh.pa.us>
Luca Ferrari  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
Дата:
От: Nicolas Paris
Дата:
FAQ