Re: uploading files - Mailing list pgsql-general

From Doug McNaught
Subject Re: uploading files
Date
Msg-id 87fzglqvzq.fsf@asmodeus.mcnaught.org
Whole thread Raw
In response to Point-in-time data recovery - v.7.4  (Rafael Martinez Guerrero <r.m.guerrero@usit.uio.no>)
Responses Re: uploading files
List pgsql-general
Karsten Hilbert <Karsten.Hilbert@gmx.net> writes:

> > Depends on whether you need "random access" to the contents.  You can
> > lo_seek() inside a large object and retrieve parts of the data with
> > lo_read(), while 'text' and 'bytea' currently require fetching the
> > whole file.
> Not so unless I misunderstand. We use substr() on bytea for
> chunking access to large files on OSs with inferior TCP/IP buffer
> implementations. That's probably suboptimal performance-wise,
> though.

I think the field will still be competely loaded into memory on the
server side though, while LOs are stored in "chunks" and can
theoretically be streamed to the client.  I'm not really a definitive
authority, though...

-Doug


pgsql-general by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: uploading files
Next
From: Alex Satrapa
Date:
Subject: Query Planner Filtering Of Specified Value From 'On Distinct' Clause