Re: Receiving data in binary format how is it encoded?

Поиск
Список
Период
Сортировка
Искать
От
Carlos Guzman Alvarez
Тема
Re: Receiving data in binary format how is it encoded?
Дата
Msg-id
3F086B72.4070304@telefonica.net
Ответ на
Список
Дерево обсуждения
Receiving data in binary format how is it encoded? "Francisco Figueiredo Jr." <fxjrlists@yahoo.com.br>
Re: Receiving data in binary format how is it encoded? Carlos Guzman Alvarez <carlosga@telefonica.net>
Re: Receiving data in binary format how is it encoded? "Francisco Figueiredo Jr." <fxjrlists@yahoo.com.br>
Re: Receiving data in binary format how is it encoded? Carlos Guzman Alvarez <carlosga@telefonica.net>
Re: Receiving data in binary format how is it encoded? "Francisco Figueiredo Jr." <fxjrlists@yahoo.com.br>
Hello:

> Yeah, while waiting for the response, I added support for the int4 
> datatype. It is really encoded as a 4 bytes value.

:)

> Uhmmm, where did you take the 2000,1,1 as base from?
> If the date is before 2000, days will have a negative value, so date is 
> calculated correctly backwards?

In the little tests i do, yes.


> Thanks Carlos. do you know in what file are these values produced?

Not sure but i'm reviewing files in directory:

src\backend\utils\adt

This is what seems to be sent for numeric datatype i'm going to test it 
now :D:
pq_sendint(&buf, x.ndigits, sizeof(int16));pq_sendint(&buf, x.weight, sizeof(int16));pq_sendint(&buf, x.sign, sizeof(int16));pq_sendint(&buf, x.dscale, sizeof(int16));for (i = 0; i < x.ndigits; i++)	pq_sendint(&buf, x.digits[i], sizeof(NumericDigit));






-- 
Best regards

Carlos Guzmán Álvarez
Vigo-Spain


В списке pgsql-hackers по дате отправления
От: Kurt Roeckx
Дата:
От: Sergey
Дата:
FAQ