Re: [HACKERS] Question about array read using protocol 3.0 implementation

2003-06-30 Thread Carlos Guzman Alvarez
Hello: Right, the fixed-length array types are a whole 'nother critter. Thanks -- Best regards Carlos Guzmán Álvarez Vigo-Spain ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's

Re: [HACKERS] Question about array read using protocol 3.0 implementation

2003-06-30 Thread Tom Lane
Carlos Guzman Alvarez <[EMAIL PROTECTED]> writes: > Thanks another wuestion in this case about oidvector i'm reviewing > oidvectorsend() at backend/utils/adt/oid.c and seems that for this > datatype the server sends only array data, i'm rigth ??, i think yes but > i want to be sure ;) ( and i think

Re: [HACKERS] Question about array read using protocol 3.0 implementation

2003-06-30 Thread Carlos Guzman Alvarez
Hello: Thanks another wuestion in this case about oidvector i'm reviewing oidvectorsend() at backend/utils/adt/oid.c and seems that for this datatype the server sends only array data, i'm rigth ??, i think yes but i want to be sure ;) ( and i think the same can be applied to int2vector ?? ) --

Re: [HACKERS] Question about array read using protocol 3.0 implementation

2003-06-30 Thread Carlos Guzman Alvarez
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++

Re: [HACKERS] Question about array read using protocol 3.0 implementation in C#

2003-06-29 Thread Tom Lane
Carlos Guzman Alvarez <[EMAIL PROTECTED]> writes: > I'm trying to read an array, using binary format code and my own > implementation of the 3.0 protocol in C#, at this moment i have made > test with arrays of int2 and float4, seems that the server sends a > header of 24 bytes before the data i

[HACKERS] Question about array read using protocol 3.0 implementation in C#

2003-06-29 Thread Carlos Guzman Alvarez
Hello: I'm trying to read an array, using binary format code and my own implementation of the 3.0 protocol in C#, at this moment i have made test with arrays of int2 and float4, seems that the server sends a header of 24 bytes before the data in the buffer, i need to know what these 24 bytes