Re: Transaction safety and large objects. Possible?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Eric Davies <Eric(at)barrodale(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Transaction safety and large objects. Possible?
Date: 2006-01-30 22:28:08
Message-ID: 24195.1138660088@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Eric Davies <Eric(at)barrodale(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ted Powell 2006-01-30 22:30:47 Re: Logging statements and parameter values
Previous Message Bruce Momjian 2006-01-30 22:19:23 Re: Logging statements and parameter values