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. :)

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [EMAIL PROTECTED] so that your
      message can get through to the mailing list cleanly

Reply via email to