From: PostgreSQL Admin <postgres@Firewall.Mythos.Org>
To: pgsql-interfaces@postgreSQL.org
Subject: libpq, Large Objects, Type lo
Date: Fri, 25 Jun 1999 15:45:07 -0400
Message-ID: <19990625154507.A16765@Gateway.mythos.org> (raw)
I have an app written in Borland C++ Builder accessing Blobs in the database
All is well, I have set up the user defined type of "lo" and
the Borland Windows app add/deletes blobs beautifully.
The problem comes in the unix enviroment, where I would like to interact
with the blobs via libpq.
How to I access these blobs...
-------------------------------
select image_oid from footable where image_oid is not null;
image_oid
---------
136001
but ....
select lo_export(image_oid),'/tmp/foo.jpg') from footable where image_oid is not null;
ERROR: No such function 'lo_export' with the specified attributes
this is from psql, and I get simialer errors from my small c proggie.
Thanks,
Travis
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: postgres@Firewall.Mythos.Org
Subject: Re: libpq, Large Objects, Type lo
In-Reply-To: <19990625154507.A16765@Gateway.mythos.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