pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedLob Streaming
3+ messages / 2 participants
[nested] [flat]
* Lob Streaming
@ 2011-02-07 15:00 Ramesh Reddy <rareddy@redhat.com>
0 siblings, 1 reply; 3+ messages in thread
From: Ramesh Reddy @ 2011-02-07 15:00 UTC (permalink / raw)
To: pgsql-odbc
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.
Thanks
Ramesh..
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Lob Streaming
@ 2011-02-07 16:18 Richard Broersma <richard.broersma@gmail.com>
parent: Ramesh Reddy <rareddy@redhat.com>
0 siblings, 1 reply; 3+ messages in thread
From: Richard Broersma @ 2011-02-07 16:18 UTC (permalink / raw)
To: rareddy@redhat.com; +Cc: pgsql-odbc
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.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Lob Streaming
@ 2011-02-09 15:22 Ramesh Reddy <rareddy@redhat.com>
parent: Richard Broersma <richard.broersma@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: Ramesh Reddy @ 2011-02-09 15:22 UTC (permalink / raw)
To: Richard Broersma <richard.broersma@gmail.com>; +Cc: 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@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.
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2011-02-09 15:22 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-02-07 15:00 Lob Streaming Ramesh Reddy <rareddy@redhat.com>
2011-02-07 16:18 ` Richard Broersma <richard.broersma@gmail.com>
2011-02-09 15:22 ` Ramesh Reddy <rareddy@redhat.com>
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