X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id A13539DC9DA for ; Fri, 17 Mar 2006 20:27:13 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 30647-04 for ; Fri, 17 Mar 2006 20:27:16 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from chrobd01.vailsys.com (chrobd01.vailsys.com [63.210.102.138]) by postgresql.org (Postfix) with ESMTP id 5DA659DC987 for ; Fri, 17 Mar 2006 20:27:10 -0400 (AST) Received: from dfsfbd06.vail (dfsfbd06.vail [192.168.129.190]) by chrobd01.vailsys.com (Postfix) with ESMTP id 179ED4990; Fri, 17 Mar 2006 18:27:14 -0600 (CST) Received: from [192.168.129.15] (ltwddurham.vail [192.168.129.15]) by dfsfbd06.vail (Postfix) with ESMTP id 258A8323F9D; Fri, 17 Mar 2006 18:27:10 -0600 (CST) Message-ID: <441B53DE.50909@vailsys.com> Date: Fri, 17 Mar 2006 18:27:10 -0600 From: David Durham User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Jurka Cc: pgsql-jdbc@postgresql.org Subject: Re: streaming access to bytea data References: <441B4B8E.2030404@vailsys.com> In-Reply-To: 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.055 required=5 tests=[AWL=0.055] X-Spam-Score: 0.055 X-Spam-Level: X-Archive-Number: 200603/81 X-Sequence-Number: 14862 Kris Jurka wrote: > On Fri, 17 Mar 2006, David Durham wrote: > >> 1 - Does Postgres server load the entire bytea column before sending >> to clients? > > Yes. ok > The JDBC driver doesn't support streaming reads, nor does any other > client interface. You would need to extend the frontend/backend > protocol to return some sort of pointer to the bytea reference rather > than the whole thing. This will still require the server to store the > whole bytea result somewhere to allow it to be pointed to. > > Perhaps you should think about using large objects instead of bytea? Thanks for the quick response, and the exact information that I needed. Unfortunately large objects don't work with Slony replication. Thanks again, Dave