Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 23E6A9FB2A7 for ; Wed, 7 Mar 2007 12:48:36 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 27846-07 for ; Wed, 7 Mar 2007 12:48:26 -0400 (AST) X-Greylist: delayed 00:33:53.138117 by SQLgrey-1.7.4 Received: from smtp1.execulink.net (smtp1.execulink.net [69.63.44.82]) by postgresql.org (Postfix) with ESMTP id F3E6A9FB292 for ; Wed, 7 Mar 2007 12:48:25 -0400 (AST) Received: from acer.sympatico.ca (node-6114.tor.pppoe.execulink.com [67.158.71.227]) by smtp1.execulink.net (8.13.1/8.12.11) with ESMTP id l27GNb3I004019 for ; Wed, 7 Mar 2007 11:23:38 -0500 Message-Id: <5.2.1.1.0.20070307105703.009ff740@pop6.sympatico.ca> X-Sender: b1wudu74@pop6.sympatico.ca X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Wed, 07 Mar 2007 11:12:12 -0500 To: pgsql-interfaces@postgresql.org From: Frank Bax Subject: DBD-pg - server closed the connection unexpectedly Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.205 tagged_above=0 required=5 tests=BAYES_50, FORGED_RCVD_HELO, SPF_NEUTRAL X-Spam-Level: * X-Archive-Number: 200703/18 X-Sequence-Number: 6459 OpenBSD 4.1-beta; pg 8.2.3; p5-DBI-1.53; p5-DBD-Pg-1.47 Here is a portion of my script. The system() call executes successfully once, then script crashes. Any ideas why this would happen. This script has run without issue on platform where all above software was older versions. my $val='A B C'; my $sql="UPDATE suit_query SET head=?,neck=? WHERE username=? AND qry=?"; $sth=$dbc->prepare($sql); foreach my $h (split(' ',$val)) { foreach my $n (split(' ',$val)) { $sth->execute( "$h%", "$n%", $usr, $qry ); $cmd="(date;nice -15 ./suits.pl $dbx $dbn $usr $qry;date)"; print( "$cmd > txt/$usr.$qry$h$n\n" ); system( "$cmd > txt/$usr.$qry$h$n" ); } } $dbc->disconnect(); Output from script: (date;nice -15 ./suits.pl RL fbax Combined 200;date) > txt/Combined.200AA DBD::Pg::st execute failed: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. DBD::Pg::st execute failed: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. /suits.pl is a long running script and also accesses pg database through DBD-pg... $ grep 2007 txt/Combined.200AA Fri Mar 2 14:10:04 EST 2007 Sat Mar 3 02:29:34 EST 2007