From: | Peter T Mount <peter(at)retep(dot)org(dot)uk> |
---|---|
To: | A James Lewis <james(at)vrtx(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: [GENERAL] BLOBS from psql... |
Date: | 1998-11-04 06:56:01 |
Message-ID: | Pine.LNX.3.96.981104064954.814q-100000@maidast.retep.org.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Wed, 4 Nov 1998, A James Lewis wrote:
>
>
> Is there any way to enter a large object (Binary) into a database using
> psql... or any other tool I can run from a shell script...
There are the lo_import and lo_export functions, but the file has to be on
the backend for them.
> Ideally I need to be able to take stdin and put it in a particular place
> in a table.... Then obviously get it back out later...
The easiest way is to write a small client using libpq that does it for
you.
I'm thinking on the lines of:
$> blob -i <my-src-file
and
$> blob -o >my-dest-file
It's been a while since I've used libpq, but there are some examples you
could hack to do this in the source tree.
--
Peter T Mount peter(at)retep(dot)org(dot)uk
Main Homepage: http://www.retep.org.uk
PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres
Java PDF Generator: http://www.retep.org.uk/pdf
From | Date | Subject | |
---|---|---|---|
Next Message | rex | 1998-11-04 08:20:42 | compile |
Previous Message | A James Lewis | 1998-11-04 02:46:48 | BLOBS from psql... |