| От | Tom Lane |
|---|---|
| Тема | Re: help defining a basic type operator |
| Дата | |
| Msg-id | 19616.1534776705@sss.pgh.pa.us обсуждение |
| Ответ на | help defining a basic type operator (Luca Ferrari <fluca1978@gmail.com>) |
| Ответы |
Re: help defining a basic type operator
|
| Список | pgsql-general |
Luca Ferrari <fluca1978@gmail.com> writes:
> I'm trying to define a custom data type that would represent a number
> of bytes in a lossy human way.
You did not show us the SQL definition of the type. I don't see anything
obviously wrong in what you showed (other than hfsize_add not setting the
result's scaling), so the problem is somewhere else. Given this C
declaration, the type probably needs to be size 16, double alignment,
pass-by-reference; maybe you messed up part of that?
> HFSize *sum = new_HFSize();
What is new_HFSize?
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера