View Single Post

   
  #2 (permalink)  
Old 04-09-2008, 08:09 AM
Tom Lane
 
Posts: n/a
Default Re: Transaction safety and large objects. Possible?

Eric Davies <Eric@barrodale.com> writes:
> Now I'm trying to make the functions transaction safe. In theory, all
> I need to do is convert my libpq calls to equivalent SPI calls.
> However, there don't appear to be any SPI equivalents for the large
> object functions like lo_write and lo_read.


What do you need SPI for? Call the functions directly. See
src/include/libpq/be-fsstubs.h
src/backend/libpq/be-fsstubs.c

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Reply With Quote