Re: Extending SQL in C using VARIABLE length type

Поиск
Список
Период
Сортировка
От Yeb Havinga
Тема Re: Extending SQL in C using VARIABLE length type
Дата
Msg-id 4B72968E.9030009@gmail.com
обсуждение исходный текст
Ответ на Re: Extending SQL in C using VARIABLE length type  (Carsten Kropf <ckropf2@fh-hof.de>)
Ответы Re: Extending SQL in C using VARIABLE length type  (Carsten Kropf <ckropf2@fh-hof.de>)
Re: Extending SQL in C using VARIABLE length type  (Carsten Kropf <ckropf2@fh-hof.de>)
Список pgsql-general
Carsten Kropf wrote:
> Oh, I see, does the VARSIZE length field have to be the total number of bytes occupied (including VARHDRSZ and the
sizeof the structure) or only the size that is used by "my" datatype? 
Yes
>  Then it would become pretty much obvious, why this is not supposed to work.
> I'll try it out then.
>
My €0,02: rename the dimensions to vl_len_ to avoid confusion and get
compiler errors where you now use 'dimension'. Add a macro that converts
a pointnd structure to dimension int by taking the VARSIZE_ANY_EXHDR /
sizeof(float8) and use it where dimension is used now. Or if your
database is small you could keep dimension in the structure.


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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: 8.5devel: unexpected and illogical error during transaction, but transaction don't rolled back
Следующее
От: "A. Kretschmer"
Дата:
Сообщение: Re: 8.5devel: unexpected and illogical error during transaction, but transaction don't rolled back