From: | Carlos Guzman Alvarez <carlosga(at)telefonica(dot)net> |
---|---|
To: | "Francisco Figueiredo Jr(dot)" <fxjrlists(at)yahoo(dot)com(dot)br> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Receiving data in binary format how is it encoded? |
Date: | 2003-07-06 18:33:22 |
Message-ID: | 3F086B72.4070304@telefonica.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Bruno Wolff III | 2003-07-06 19:45:07 | Re: Proof-of-concept for initdb-time shared_buffers selection |
Previous Message | Kurt Roeckx | 2003-07-06 16:44:35 | Re: PostgreSQL 7.4devel - LOG: PGSTAT: socket() failed: Invalid argument |