X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5700B329E4F for ; Tue, 19 Oct 2004 21:44:23 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 86499-04 for ; Tue, 19 Oct 2004 20:44:12 +0000 (GMT) Received: from mail.budka.ru (unknown [62.5.147.34]) by svr1.postgresql.org (Postfix) with SMTP id 5C48B329D9E for ; Tue, 19 Oct 2004 21:44:11 +0100 (BST) Received: (qmail 1105 invoked by uid 399); 19 Oct 2004 20:42:18 -0000 Received: from unknown (HELO bruno.sokol.ru) (forlists@fbd.ru@194.226.52.138) by 196.1.4.29 with SMTP; 19 Oct 2004 20:42:18 -0000 Date: Wed, 20 Oct 2004 00:51:13 +0400 From: Peter Chekunaev X-Mailer: The Bat! (v2.12.00) Reply-To: Peter Chekunaev X-Priority: 3 (Normal) Message-ID: <985914927.20041020005113@fbd.ru> To: pgsql-interfaces@postgresql.org Subject: plperl & large objects MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/24 X-Sequence-Number: 5119 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