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 D459C52AFB for ; Mon, 18 Jul 2005 14:06:53 -0300 (ADT) 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 06067-01 for ; Mon, 18 Jul 2005 17:06:51 +0000 (GMT) Received: from mx-2.zoominternet.net (mx-2.zoominternet.net [24.154.1.21]) by svr1.postgresql.org (Postfix) with ESMTP id 298F852AC2 for ; Mon, 18 Jul 2005 14:06:48 -0300 (ADT) Received: from mua-2.zoominternet.net (mua-2.zoominternet.net [24.154.1.45]) by mx-2.zoominternet.net (8.12.11/8.12.11) with ESMTP id j6IH6aeS003641 for ; Mon, 18 Jul 2005 13:06:37 -0400 Received: from [192.168.0.188] (acs-24-144-211-60.zoominternet.net [24.144.211.60]) by mua-2.zoominternet.net (Postfix) with ESMTP id B8C087F40C for ; Mon, 18 Jul 2005 13:06:26 -0400 (EDT) Subject: DBD::PgSPI killing server connection From: Scott Cain To: pgsql-interfaces@postgresql.org Content-Type: text/plain Date: Mon, 18 Jul 2005 13:06:26 -0400 Message-Id: <1121706386.4205.9.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-4) Content-Transfer-Encoding: 7bit X-CanItPRO-Stream: outgoing X-Scanned-By: CanIt (www . roaringpenguin . com) on 24.154.1.21 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200507/31 X-Sequence-Number: 5667 Hello, I am trying to write a plperlu function that uses DBD::PgSPI with Pg version 7.4.8 (obtained via RPM from the Fedora Core 3 project). When I install plperlu via 'createlang plperlu dbname' and then create this function: CREATE OR REPLACE FUNCTION perl_test() RETURNS void AS ' use DBI; my $dbh = DBI->connect("dbi:PgSPI:internal", "", ""); my $sth = $dbh->prepare("select * from cvterm where name = ''gene''"); $sth->execute; while (my @array = $sth->fetchrow_array) { print "@array\n"; } ' LANGUAGE plperlu; I then get this output when trying 'select perl_test();' yeast=# select perl_test(); server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. The connection to the server was lost. Attempting reset: Succeeded. I'm guessing there is something fundamental about DBD::PgSPI that I am not getting; any idea what that is? Thanks much, Scott -- ------------------------------------------------------------------------ Scott Cain, Ph. D. cain@cshl.edu GMOD Coordinator (http://www.gmod.org/) 216-392-3087 Cold Spring Harbor Laboratory