libpq binary format for contrib/cube type?

Поиск
Список
Период
Сортировка
Искать

libpq binary format for contrib/cube type?

От:
aws <andy.schmeder@gmail.com>
Дата:
I'm using libpq with a prepared query, and I'd like to access the  
contrib/cube type using the binary format.  The documentation  
describes the text format for cubes but doesn't say what the binary  
format is.

I glanced at the source code but... its complicated. :) Any help is  
appreciated.

Thanks--
Andy.

Re: libpq binary format for contrib/cube type?

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
aws  writes:
> I'm using libpq with a prepared query, and I'd like to access the  
> contrib/cube type using the binary format.  The documentation  
> describes the text format for cubes but doesn't say what the binary  
> format is.

There isn't one --- contrib/cube doesn't provide send/receive
functions at all.

			regards, tom lane

Re: libpq binary format for contrib/cube type?

От:
aws <andy.schmeder@gmail.com>
Дата:
OK, I found another way to send the data using the array format and  
"cube($1::float8[])".

Thanks!
Andy.

On Jan 28, 2009, at 2:47 PM, Tom Lane wrote:

> There isn't one --- contrib/cube doesn't provide send/receive
> functions at all.
>
> 			regards, tom lane

FAQ