| From: | Peter Chekunaev <forlists(at)fbd(dot)ru> |
|---|---|
| To: | pgsql-interfaces(at)postgresql(dot)org |
| Subject: | plperl & large objects |
| Date: | 2004-10-19 20:51:13 |
| Message-ID: | 985914927.20041020005113@fbd.ru |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-interfaces |
Hello!
I wrote the function in plperlu. I know it works (I ran in from
file). This code is from my function:
$oid = $dbh->func($dbh->{pg_INV_WRITE}, "lo_creat");
$lobj_fd = $dbh->func($oid, $dbh->{pg_INV_WRITE}, 'lo_open');
$nbytes = $dbh->func($lobj_fd, $objxml, $xmllength, "lo_write");
$lobj_fd = $dbh->func($lobj_fd, "lo_close");
When function runs postgres returns different reasons. Sometimes
it says "There is no large object with oid: ..." Sometimes it says
that allocated memory is not enough. Has anyone the same
problem?
Please help me:)
Best regards,
Peter
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jeroen T. Vermeulen | 2004-10-20 06:38:42 | Re: Er... what's up and what's current? |
| Previous Message | Peter Chekunaev | 2004-10-19 20:31:25 | DROP TRIGGER in trigger |