Re: Lob Streaming

From: Ramesh Reddy <rareddy(at)redhat(dot)com>
To: Richard Broersma <richard(dot)broersma(at)gmail(dot)com>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: Lob Streaming
Date: 2011-02-09 15:22:27
Message-ID: 1297264947.2795.33.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Thank you for the info.

I am afraid, the code I see in the ODBC driver is not doing streaming.
It makes one lo_read call based on the buffer size configured in your
client and truncates the rest of the content.

What I would like to have seen is, driver making a small length lo_read
calls to fill up the buffer size provided by the client, then truncate
if the size is larger, not request one huge chuck of read from the
server.

Ramesh..

On Mon, 2011-02-07 at 08:18 -0800, Richard Broersma wrote:
>
>
> On Mon, Feb 7, 2011 at 7:00 AM, Ramesh Reddy <rareddy(at)redhat(dot)com>
> wrote:
> Hi,
>
> Does psql-odbc driver support lob streaming? I could
> successfully get
> 'bytea' content, but for large size > GB lobs I am running
> into memory
> issues. Can you body suggest any alternatives.
>
> Try using the PostgreSQL contrib module "lo."
>
> http://www.postgresql.org/docs/9.0/interactive/lo.html
>
> also see:
> http://www.postgresql.org/docs/9.0/interactive/vacuumlo.html
>
> --
> Regards,
> Richard Broersma Jr.

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message maria elena hernandez 2011-02-11 14:58:26 error "DSN specified architecture mismatch between the controller and the application"
Previous Message Ramesh Reddy 2011-02-07 21:09:02 How to turn on debugging