[Linux-programlama] postgresql multi process

---------

[Linux-programlama] postgresql multi process

From: Atıf CEYLAN <atifceylan_at_gmail.com>
Date: Mon, 14 Apr 2008 11:19:41 +0300
Message-ID: <4803139D.3080205@gmail.com>

merhaba,
postgresqle konsolda çalışan bir php ile tek bağlantı oluşturup birden
fazla query aynı anda calıştırmak istediğimde

"server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.server closed the
connection unexpectedly"

şeklinde bir hata alıyorum.

kodlama aşağıdaki gibi

$db = new baglanti(parametreler)

function sorgu_fonksiyonu($db, $SuankiProccess)
{
       query......
}

loop
            $PrgId = pcntl_fork();
               
            if ( $PrgId == 0)
            {
               
                $process++;
               
            
}else{
       
               
                sorgu_fonksiyonu($db, $process);
                exit();
               
            }

end loop

-- 
 
/**
 * @author Atıf CEYLAN
 *
 * Software Developer
 *
 * http://www.atifceylan.com
 *
 */
_______________________________________________
Linux-programlama mailing list
Linux-programlama_at_liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama
Received on Mon 14 Apr 2008 - 10:30:44 EEST

---------

Bu arsiv hypermail 2.2.0 tarafindan uretilmistir.