Re: SPI question (or not): trying to read from Large Objects from within a function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Helgason <david(at)uti(dot)is>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: SPI question (or not): trying to read from Large Objects from within a function
Date: 2004-01-07 06:46:22
Message-ID: 16623.1073457982@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

David Helgason <david(at)uti(dot)is> writes:
> These internal functions (loread/lowrite) have quite different
> signatures from their C equivalents (as opposed to lo_lseek). Found out
> from the sources that I was using it very incorrectly.

I had just realized from reading your last message that you were trying
to write server-side functions, and reading the client-side
documentation to do so :-(. The server-side stuff is really not the
same API at all, though it tends to use the same function names.
In general, you have to be prepared to read the source code when writing
server-side stuff.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Robert Treat 2004-01-07 06:49:11 OFF TOPIC!! Re: Paypal WAS: PostgreSQL speakers needed for OSCON
Previous Message Chris Travers 2004-01-07 06:19:43 Re: problems with transaction blocks