libpq binary format for contrib/cube type?

Started by awsabout 17 years ago3 messagesgeneral
Jump to latest
#1aws
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.

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: aws (#1)
Re: libpq binary format for contrib/cube type?

aws <andy.schmeder@gmail.com> 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

#3aws
andy.schmeder@gmail.com
In reply to: Tom Lane (#2)
Re: libpq binary format for contrib/cube type?

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:

Show quoted text

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

regards, tom lane