X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7A50DDC04F for ; Wed, 23 Nov 2005 00:14:41 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 61652-07 for ; Wed, 23 Nov 2005 04:14:39 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from nz.telogis.com (unknown [203.98.10.169]) by svr1.postgresql.org (Postfix) with ESMTP id D7FCDDC52E for ; Wed, 23 Nov 2005 00:14:38 -0400 (AST) Received: from [192.168.3.1] ([192.168.3.1]) by nz.telogis.com with esmtp; Wed, 23 Nov 2005 17:14:37 +1300 id 007321A5.4383ECAD.00001865 Message-ID: <4383ECAE.8050109@telogis.com> Date: Wed, 23 Nov 2005 17:14:38 +1300 From: Ralph Mason User-Agent: Thunderbird 1.4 (Windows/20050908) MIME-Version: 1.0 To: Tom Lane CC: pgsql-performance@postgresql.org Subject: Re: Binary Refcursor possible? References: <4383E459.2070906@telogis.com> <10135.1132718845@sss.pgh.pa.us> In-Reply-To: <10135.1132718845@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/465 X-Sequence-Number: 15722 Tom Lane wrote: > Ralph Mason writes: > >> Is there any way I can say make ret a binary cursor? >> > > It's possible to determine that at the protocol level, if you're using > V3 protocol; but whether this is exposed to an application depends on > what client-side software you are using. Which you didn't say. > > regards, tom lane > This is probably in the documentation but I couldn't find it. All I could see is that if you open a cursor for binary it would return with a type of binary rather than text in the row data messages. The RowDescription format code is always text, and the cursor thing is the only way I could see to change that. Is there some setting I can set that will make it return all data as binary? The dream would also be that I could ask the server it's native byte order and have it send me binary data in it's native byte order. Nice and fast. :-0 Ralph