pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: postgres@lg.ndirect.co.uk
To: pgsql-interfaces@postgresql.org
Subject: Binary cursors and arrays
Date: Mon, 11 Nov 2002 15:09:59 -0000
Message-ID: <005a01c28994$66e64f90$1c1d01a3@FGU028> (raw)

I am trying to retrieve data using a binary cursor using libpq but I
cannot
seem to find where the data is stored:

I execute the following

create temp table t_1( a integer[]);
copy t_1 from stdin;
{8}
\.
begin;
declare c_1 binary cursor from select * from t_1;
fetch from c_1;

The first four bytes seem to show the dimensions of the array. How do I
get
at the data>
Thanks
Leo




view thread (3+ messages)

Message-ID: <005a01c28994$66e64f90$1c1d01a3@FGU028>
Permalink:  ../005a01c28994$66e64f90$1c1d01a3@FGU028/
Also on:    postgresql.org/message-id/005a01c28994$66e64f90$1c1d01a3@FGU028

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: postgres@lg.ndirect.co.uk
  Subject: Re: Binary cursors and arrays
  In-Reply-To: <005a01c28994$66e64f90$1c1d01a3@FGU028>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox