Re: Question about array read using protocol 3.0 implementation - Mailing list pgsql-hackers

From Carlos Guzman Alvarez
Subject Re: Question about array read using protocol 3.0 implementation
Date
Msg-id 3F000AAC.1070403@telefonica.net
Whole thread Raw
In response to Re: Question about array read using protocol 3.0 implementation in C#  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hello:


> Use the source Luke ... array_send, in backend/utils/adt/arrayfuncs.c,
> does this:
> 
>     /* Send the array header information */
>     pq_sendint(&buf, ndim, 4);
>     pq_sendint(&buf, v->flags, 4);
>     pq_sendint(&buf, element_type, sizeof(Oid));
>     for (i = 0; i < ndim; i++)
>     {
>         pq_sendint(&buf, ARR_DIMS(v)[i], 4);
>         pq_sendint(&buf, ARR_LBOUND(v)[i], 4);
>     }

Thanks very much.


> I believe flags is always 0 at the moment; it might be a good idea
> to punt if you see a nonzero there.

I have added code for check it.




-- 
Best regards

Carlos Guzma'n A'lvarez
Vigo-Spain

- Miembro del Proyecto FirebirdSQL.
- Miembro honorario de la Fundacio'n FirebirdSQL.

http://www.firebirdsql.org



pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: PlPython
Next
From: deststar
Date:
Subject: Is Patch Ok for deferred trigger disk queue?