Re: uploading files
От | Doug McNaught |
---|---|
Тема | Re: uploading files |
Дата | |
Msg-id | 87fzglqvzq.fsf@asmodeus.mcnaught.org обсуждение исходный текст |
Ответ на | Point-in-time data recovery - v.7.4 (Rafael Martinez Guerrero <r.m.guerrero@usit.uio.no>) |
Ответы |
Re: uploading files
|
Список | 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 по дате отправления: