pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Llew <leo.goodstadt@anat.ox.ac.uk>
To: pgsql-interfaces@postgresql.org
Subject: Binary cursors and arrays
Date: Mon, 11 Nov 2002 14:54:19 -0000
Message-ID: <ar3aqi$149$1@news.hub.org> (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)  latest in thread

Message-ID: <ar3aqi$149$1@news.hub.org>
Permalink:  ../ar3aqi$149$1@news.hub.org/
Also on:    postgresql.org/message-id/ar3aqi$149$1@news.hub.org

 · 

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: leo.goodstadt@anat.ox.ac.uk
  Subject: Re: Binary cursors and arrays
  In-Reply-To: <ar3aqi$149$1@news.hub.org>

* 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