From: Александър Шопов <lists@kambanaria.org>
To: pgsql-jdbc@postgresql.org
Subject: Re: Workarounds for getBinaryStream returning ByteArrayInputStream on bytea
Date: Thu, 25 Nov 2010 00:53:31 +0200
Message-ID: <1290639211.3659.15.camel@dalgonosko> (raw)
In-Reply-To: <5cdf97054e76f67c40b74de114691762@smogura-softworks.eu>
References: <1290631846.3659.9.camel@dalgonosko>
<5cdf97054e76f67c40b74de114691762@smogura-softworks.eu>
В 16:04 -0600 на 24.11.2010 (ср), Radosław Smogura написа:
> I see only two possibilities
> 1. Decrease fetch size, e.g. to 1.
Even if I do, bytea is potentially 1GB. Plus peaks in usage can still
smash the heap.
So refactoring to BLOBs is perhaps the only way out.
Will the JDBC driver always present bytea InputStream as
ByteArrayInputStream? No plans to change that? (even if there are, I
will still have to refactor meanwhile).
Perhaps this behaviour should be better communicated to DB schema
designers.
It seems to me from the Npgsql2.0.11 readme.txt that reading in chunks
is provided for .Net.
Is there need to perhaps make patches for this in the jdbc driver?
Kind regards:
al_shopov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: lists@kambanaria.org
Subject: Re: Workarounds for getBinaryStream returning ByteArrayInputStream on bytea
In-Reply-To: <1290639211.3659.15.camel@dalgonosko>
References: <1290631846.3659.9.camel@dalgonosko> <5cdf97054e76f67c40b74de114691762@smogura-softworks.eu> <1290639211.3659.15.camel@dalgonosko>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox