Received: from si.moris.ru (si.moris.ru [195.90.154.1]) by hub.org (8.9.3/8.9.3) with ESMTP id FAA65077 for ; Tue, 14 Sep 1999 05:18:05 -0400 (EDT) (envelope-from owld@mail.ru) Received: from mail.ru (Cerber.moris.ru [195.90.154.25]) by si.moris.ru (8.8.7/8.8.7) with ESMTP id NAA17598 for ; Tue, 14 Sep 1999 13:17:44 +0400 Message-ID: <37DE12B5.D7B3A714@mail.ru> Date: Tue, 14 Sep 1999 13:17:41 +0400 From: Dmitry A Brutckevich X-Mailer: Mozilla 4.6 [en] (Win98; I) X-Accept-Language: en,ru MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: SERIAL type in PHP Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Hi All ! I am get a some problem : When i write in php my brower ( and log on server ) write to me : Warning: PostgresSQL query failed: pqReadData() -- backend closed the channel unexpectedly. This probably means the backend terminated abnormally before or while processing the request. in /usr/local/rubin/system/generating.phtml on line 134 I am rewrite: $dbase=pg_connect("host=somehost.domain.ru user=$login password=$pass port=5432 dbname=maindb"); $result=pg_Exec($dbase, " CREATE SEQUENCE users_userid_seq "); $result=pg_Exec($dbase, " CREATE TABLE users ( userid INT4 DEFAULT nextval('users_userid_seq')) "); $result=pg_Exec($dbase, " CREATE UNIQUE INDEX users_userid_key on users (userid) " ); And all work properly. No warnings. Where is problem ? Dmitry