Received: from rt.mipt.ru (frtk-campus-gw.mipt.ru [194.85.82.97]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0IIn8086995 for ; Thu, 18 Jan 2001 13:49:09 -0500 (EST) (envelope-from gena@rt.mipt.ru) Received: from gena.rt.mipt.ru (gena.rt.mipt.ru [194.85.82.153]) by rt.mipt.ru (8.9.3/8.9.3) with ESMTP id VAA12969 for ; Thu, 18 Jan 2001 21:49:06 +0300 Date: Thu, 18 Jan 2001 21:49:26 +0300 From: Gena Gurchonok X-Mailer: The Bat! (v1.47 Halloween Edition) Personal Reply-To: Gena Gurchonok X-Priority: 3 (Normal) Message-ID: <5220044251.20010118214926@rt.mipt.ru> To: pgsql-admin@postgresql.org Subject: Deadlocks Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200101/116 X-Sequence-Number: 493 Hello. It seems to me that I discovered strange PSQL behaviour I have table logs: ------------- CREATE TABLE "logs" ( "id" int4 NOT NULL, "type" int4 NOT NULL, "dt" timestamp NOT NULL, "addr" character varying(20) ); ------------- with indexes: ------------- CREATE INDEX "logs_id_key" on "logs" using hash ( "id" "int4_ops" ); CREATE INDEX "logs_type_key" on "logs" using hash ( "type" "int4_ops" ); CREATE INDEX "logs_dt_key" on "logs" using hash ( "dt" "timestamp_ops" ); ------------- Each HTTP request in my site inserts one row to this table. PROBLEM: Sometimes it writes error message "NOTICE: Deadlock detected -- See the lock(l) manual page for a possible cause." and row of course is not inserted. If I drop all indices on this table then such notice is not appearing. But I need indices on this table. I have tried this on 7.0.3 and CVS versions. Gena