server side LO

From: Maciej Wawrzynczuk <fazi(at)fpnp(dot)pl>
To: pgsql-general(at)postgresql(dot)org
Subject: server side LO
Date: 2007-05-23 19:45:44
Message-ID: 465499E8.3000507@fpnp.pl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'm writing the server side function what process large object, and i
need the file descriptor for this LO. I looked in be-fsstubs.c, but i'm
confused. Any simpler examples?

I think i can create procedure in plpgsql like this:

fd := lo_open(oid);
result := my_func(fd);
lo_close(fd);

It's will works? Will be descriptor valid inside my function?

PS: Sorry for my english. :)

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2007-05-23 19:50:06 Re: Performance
Previous Message Andrew Sullivan 2007-05-23 19:41:15 Re: Integrity on large sites