pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ramesh Reddy <rareddy@redhat.com>
To: Richard Broersma <richard.broersma@gmail.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Lob Streaming
Date: Wed, 09 Feb 2011 10:22:27 -0500
Message-ID: <1297264947.2795.33.camel@localhost.localdomain> (raw)
In-Reply-To: <AANLkTi=_BaF7=-ZhSK_GaNW3=_10fKW365GPia80d4pL@mail.gmail.com>
References: <1297090806.3034.4.camel@localhost.localdomain>
	<AANLkTi=_BaF7=-ZhSK_GaNW3=_10fKW365GPia80d4pL@mail.gmail.com>

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@redhat.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.





view thread (3+ messages)

Message-ID: <1297264947.2795.33.camel@localhost.localdomain>
Permalink:  ../1297264947.2795.33.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1297264947.2795.33.camel@localhost.localdomain

 · 

reply

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-odbc@postgresql.org
  Cc: rareddy@redhat.com, richard.broersma@gmail.com
  Subject: Re: Lob Streaming
  In-Reply-To: <1297264947.2795.33.camel@localhost.localdomain>
  References: <1297090806.3034.4.camel@localhost.localdomain> <AANLkTi=_BaF7=-ZhSK_GaNW3=_10fKW365GPia80d4pL@mail.gmail.com> <1297264947.2795.33.camel@localhost.localdomain>

* 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