Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 919DB475EE1 for ; Mon, 11 Nov 2002 10:09:58 -0500 (EST) Received: from oxmail.ox.ac.uk (oxmail2.ox.ac.uk [163.1.2.2]) by postgresql.org (Postfix) with ESMTP id 08F6B47580B for ; Mon, 11 Nov 2002 10:09:58 -0500 (EST) Received: from smtp0.herald.ox.ac.uk ([163.1.0.246]) by oxmail.ox.ac.uk with esmtp (Exim 4.10) id 18BGCN-0003vj-02 for pgsql-interfaces@postgresql.org; Mon, 11 Nov 2002 15:09:59 +0000 Received: from fgu028.anat.ox.ac.uk ([163.1.29.28] helo=FGU028) by smtp0.herald.ox.ac.uk with esmtp (Exim 3.35 #1) id 18BGCN-0001gb-00 for pgsql-interfaces@postgresql.org; Mon, 11 Nov 2002 15:09:59 +0000 Reply-To: From: To: Subject: Binary cursors and arrays Date: Mon, 11 Nov 2002 15:09:59 -0000 Message-ID: <005a01c28994$66e64f90$1c1d01a3@FGU028> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/34 X-Sequence-Number: 3282 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