Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 655399FA162 for ; Tue, 12 Dec 2006 13:11:25 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 73510-10 for ; Tue, 12 Dec 2006 13:11:11 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 25B759F9FDA for ; Tue, 12 Dec 2006 13:11:12 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id kBCHBBBX004700; Tue, 12 Dec 2006 12:11:11 -0500 (EST) To: Caio Begotti cc: pgsql-odbc@postgresql.org Subject: Re: possible odbc driver bug with postgresql-7.4 In-reply-to: <2D198CAE-6B07-4BF0-A1CA-7E651A9BBD8C@ueberalles.net> References: <2D198CAE-6B07-4BF0-A1CA-7E651A9BBD8C@ueberalles.net> Comments: In-reply-to Caio Begotti message dated "Tue, 12 Dec 2006 09:42:20 -0200" Date: Tue, 12 Dec 2006 12:11:11 -0500 Message-ID: <4699.1165943471@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/47 X-Sequence-Number: 8494 Caio Begotti writes: >> We've been unable to get SQLGetData to work with chunking and the >> code is just pulling the OID of the blog, and not the actual blob... Is that supposed to work? I can't see the whole code, just the proposed patch to change the chunk size on-the-fly (which seems completely useless for such a small chunk size) ... but what it looks like is that it's just selecting the OID column value. If you expect a read of the column to deliver a lot of bytes then you should be using bytea not large objects, I would think. regards, tom lane