X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 9B9189FA666 for ; Tue, 25 Jul 2006 13:40:20 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 65813-05 for ; Tue, 25 Jul 2006 13:40:11 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.ecircle.de (mail.ecircle.de [195.140.186.200]) by postgresql.org (Postfix) with ESMTP id A6B7A9FB0D1 for ; Tue, 25 Jul 2006 13:39:41 -0300 (ADT) Received: from einstein.muc.ecircle.de (einstein.muc.ecircle.de [192.168.1.7]) by mail.ecircle.de (READY) with ESMTP id 92CE855C2A8 for ; Tue, 25 Jul 2006 18:39:40 +0200 (CEST) Received: from [192.168.1.91] ([192.168.1.91]) by einstein.muc.ecircle.de with Microsoft SMTPSVC(6.0.3790.1830); Tue, 25 Jul 2006 18:37:52 +0200 Subject: streaming bytea: is it possible ? From: Csaba Nagy To: Postgres JDBC Content-Type: text/plain Message-Id: <1153845453.22367.41.camel@coppola.muc.ecircle.de> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Tue, 25 Jul 2006 18:37:33 +0200 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 Jul 2006 16:37:53.0104 (UTC) FILETIME=[ACBEA500:01C6B008] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.029 tagged_above=0 required=5 tests=AWL, SPF_PASS X-Spam-Level: X-Archive-Number: 200607/81 X-Sequence-Number: 15507 Hi all, I wonder if it is possible to stream bytea fields without reading them completely in memory ? The reason I want that is because I want to use slony1 to replicate some tables containing BLOBs, and slony can't handle BLOBs. So I would like to convert the BLOBs to bytea (which can be handled properly by slony1), but I can't afford to load the complete BLOBs in memory, I only need to stream them. Now I wonder if the postgres JDBC implementation/postgres server is capable of doing that, or any of them needs to have the complete bytea in memory at one point... Of course I could check the source but if any of you knows it offhand I would appreciate an answer. Thanks, Csaba.