pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Doug McNaught <doug@mcnaught.org>
To: Karsten Hilbert <Karsten.Hilbert@gmx.net>
Cc: PgSQL General ML <pgsql-general@postgresql.org>
Subject: Re: uploading files
Date: 18 Nov 2003 15:09:45 -0500
Message-ID: <87fzglqvzq.fsf@asmodeus.mcnaught.org> (raw)
References: <1069164075.986.239.camel@bbking.uio.no>
	<20031118142919.GI4953@libertyrms.info>
	<1069180780.2769.91.camel@haggis.homelan>
	<019301c3ae07$d714e220$0700a8c0@trogdor>
	<87llqdqy37.fsf@asmodeus.mcnaught.org>
	<20031118205057.K606@hermes.hilbert.loc>

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




view thread (10+ messages)  latest in thread

Message-ID: <87fzglqvzq.fsf@asmodeus.mcnaught.org>
Permalink:  ../87fzglqvzq.fsf@asmodeus.mcnaught.org/
Also on:    postgresql.org/message-id/87fzglqvzq.fsf@asmodeus.mcnaught.org

 · 

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-admin@postgresql.org
  Cc: doug@mcnaught.org, Karsten.Hilbert@gmx.net, pgsql-general@postgresql.org
  Subject: Re: uploading files
  In-Reply-To: <87fzglqvzq.fsf@asmodeus.mcnaught.org>
  References: <1069164075.986.239.camel@bbking.uio.no> <20031118142919.GI4953@libertyrms.info> <1069180780.2769.91.camel@haggis.homelan> <019301c3ae07$d714e220$0700a8c0@trogdor> <87llqdqy37.fsf@asmodeus.mcnaught.org> <20031118205057.K606@hermes.hilbert.loc> <87fzglqvzq.fsf@asmodeus.mcnaught.org>

* 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