pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Chekunaev <forlists@fbd.ru>
To: pgsql-interfaces@postgresql.org
Subject: plperl & large objects
Date: Wed, 20 Oct 2004 00:51:13 +0400
Message-ID: <985914927.20041020005113@fbd.ru> (raw)

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




Message-ID: <985914927.20041020005113@fbd.ru>
Permalink:  ../985914927.20041020005113@fbd.ru/
Also on:    postgresql.org/message-id/985914927.20041020005113@fbd.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: forlists@fbd.ru
  Subject: Re: plperl & large objects
  In-Reply-To: <985914927.20041020005113@fbd.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox