Hi!

My problem is that I am defining a user data type that stores some
information in a large object (inversion object). If I compile the code
of such data type as part of a stand alone program (comunicating with
the PostgreSQL server usign libpq), I am able to create the large object
but I get an error when trying to open it.
After searching in recopilations of newsgroups emails, I know that in
this case what I need to do is to execute the "begin" command (using
pqexec()) before opening the large object, because any access to a large
object must be enclosed into a transaction. If I do so, I get my data
types working propertly and being able to open the large objects that
they use.
But my problem is that I do not want to use my data types in a
stand alone program, but added to the PostgreSQL server as new user data
types. An the problem in this case is that I can not execute the "begin"
command in the code of my data types in this context: first because it
would be definetly wrong if the code of the data type defines where
should start or end a transaction (the program accessing the database or
the user if working interactively are the only that should do it), and
second because in this case the call to pgexec() with the command
"begin" fails (with some error mesage saying that there was a parsing
error).

So, my question is: What do I need to do for solve this problen and
being able to use large objects in my user data types, taking into
account that their code should be executed in the server side?

Thanks in advance,
        Tony.

-- 
Jose Antonio Cotelo Lema.  |  Jose-Antonio.Cotelo-Lema@FernUni-Hagen.de
Praktische Informatik IV. Fernuniversitaet Hagen.
D-58084 Hagen. Germany.

Thu, 23 Sep 1999 11:13:02 +0200
Jose Antonio Cotelo lema <Jose-Antonio.Cotelo-Lema@FernUni-Hagen.de>
Problems when opening large objects in the server side.