Re: BYTEA Fields and Memory Consumption - Mailing list pgsql-odbc

From Hiroshi Inoue
Subject Re: BYTEA Fields and Memory Consumption
Date
Msg-id 4DA66CF9.8080408@tpf.co.jp
Whole thread Raw
In response to BYTEA Fields and Memory Consumption  (Raiford@labware.com)
Responses Re: BYTEA Fields and Memory Consumption  (Raiford@labware.com)
List pgsql-odbc
Hi,

(2011/04/13 21:09), Raiford@labware.com wrote:
> I have an issue where even though I break a large BYTEA object up into
> multiple pieces, the ODBC driver just rejoins the pieces in memory and
> tries to send it all out at once. I took a look at the code and sure
> enough the driver just keeps reallocating memory for each chunk of data
> that I add.

Yes you are right.

 > Can I assume Postgres has no mechanism to send this data
> across the wire in pieces? Are there any common practices for dealing
> with this?

Please try lo type instead of bytea type.

regards,
Hiroshi Inoue

 > As it is, in one environment I can only transfer files around
> 50MB before I start receiving out of memory errors. The same program
> running against Oracle and SQL Server works great.
>
> Jon


pgsql-odbc by date:

Previous
From: Raiford@labware.com
Date:
Subject: BYTEA Fields and Memory Consumption
Next
From: Josef Springer
Date:
Subject: 08.02.04.00 Updating column with Unicode does not work