Skip site navigation (1) Skip section navigation (2)

BYTEA Fields and Memory Consumption

From: Raiford(at)labware(dot)com
To: pgsql-odbc(at)postgresql(dot)org
Subject: BYTEA Fields and Memory Consumption
Date: 2011-04-13 12:09:25
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-odbc
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.  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?  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.


In response to


pgsql-odbc by date

Next:From: Hiroshi InoueDate: 2011-04-14 03:41:45
Subject: Re: BYTEA Fields and Memory Consumption
Previous:From: Hiroshi InoueDate: 2011-04-13 03:24:42
Subject: Re: problem with 09.0.0200

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group