Re: Question about array read using protocol 3.0 implementation

From: Carlos Guzman Alvarez <carlosga(at)telefonica(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Question about array read using protocol 3.0 implementation
Date: 2003-06-30 10:02:20
Message-ID: 3F000AAC.1070403@telefonica.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message sumit 2003-06-30 10:04:11 Patch for adding DATACUBE operator
Previous Message Hannu Krosing 2003-06-30 07:48:02 Re: PlPython