libpq, Large Objects, Type lo - Mailing list pgsql-interfaces

From PostgreSQL Admin
Subject libpq, Large Objects, Type lo
Date
Msg-id 19990625154507.A16765@Gateway.mythos.org
Whole thread Raw
List pgsql-interfaces
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


pgsql-interfaces by date:

Previous
From: Byron Nikolaidis
Date:
Subject: Re: [INTERFACES] ODBC 6.4 + PostgreSQL 6.5 = Can't browse tables
Next
From: "Chay Wesley"
Date:
Subject: Re: [INTERFACES] ODBC 6.4 + PostgreSQL 6.5 = Can't browse tables