Skip site navigation (1) Skip section navigation (2)

libpq, Large Objects, Type lo

From: PostgreSQL Admin <postgres(at)Firewall(dot)Mythos(dot)Org>
To: pgsql-interfaces(at)postgreSQL(dot)org
Subject: libpq, Large Objects, Type lo
Date: 1999-06-25 19:45:07
Message-ID: 19990625154507.A16765@Gateway.mythos.org (view raw or flat)
Thread:
Lists: 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

Next:From: Steven BradleyDate: 1999-06-26 00:27:35
Subject: Inter-process communication
Previous:From: Chay WesleyDate: 1999-06-25 19:44:23
Subject: Re: [INTERFACES] ODBC 6.4 + PostgreSQL 6.5 = Can't browse tables

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group