From: Karsten Hilbert <Karsten.Hilbert@gmx.net>
To: PgSQL General ML <pgsql-general@postgresql.org>
Subject: Re: uploading files
Date: Tue, 18 Nov 2003 20:50:58 +0100
Message-ID: <20031118205057.K606@hermes.hilbert.loc> (raw)
In-Reply-To: <87llqdqy37.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>
> 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.
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
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: Karsten.Hilbert@gmx.net, pgsql-general@postgresql.org
Subject: Re: uploading files
In-Reply-To: <20031118205057.K606@hermes.hilbert.loc>
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>
* 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