Skip site navigation (1) Skip section navigation (2)

Binary cursors and arrays

From: "Llew" <leo(dot)goodstadt(at)anat(dot)ox(dot)ac(dot)uk>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Binary cursors and arrays
Date: 2002-11-11 14:54:19
Message-ID: ar3aqi$149$ (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
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;
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>

pgsql-interfaces by date

Next:From: postgresDate: 2002-11-11 15:09:59
Subject: Binary cursors and arrays
Previous:From: Bruce MomjianDate: 2002-11-08 15:55:11
Subject: Re: PQcmdTuples() declaration

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group