Re: How to convert ByteA to Large Objects - Mailing list pgsql-general

From Francisco Figueiredo Jr.
Subject Re: How to convert ByteA to Large Objects
Date
Msg-id 438d02260901230434k2945c52dmc70f517e7199f743@mail.gmail.com
Whole thread Raw
In response to How to convert ByteA to Large Objects  (Howard Cole <howardnews@selestial.com>)
Responses Re: How to convert ByteA to Large Objects
List pgsql-general
On Fri, Jan 23, 2009 at 10:08 AM, Howard Cole <howardnews@selestial.com> wrote:
> Hi All,
>

Hi, Howard!

> Is there some nice SQL I can use to convert a BYTEA field into large
> objects?
>
> I am having some memory problems handling bytea parameters in Npgsql -
> getting out of memory errors. From reading various posts on this I see that
> bytea's can consume much more memory than the size of the object so I am
> going to convert these bytea's to large objects so I can chunk the data.
>

About the memory issue of Npgsql, did you try to use a prepared
statement for this? We have some performance improvements when
handling bytea values but only when the NpgsqlCommand.Prepare() method
is called.

I hope it helps.



--
Regards,

Francisco Figueiredo Jr.
Npgsql Lead Developer
http://fxjr.blogspot.com
http://www.npgsql.org

pgsql-general by date:

Previous
From: Igor Katson
Date:
Subject: Re: Using null or not null in function arguments
Next
From: Osvaldo Kussama
Date:
Subject: Resp.: Using null or not null in function arguments