Skip site navigation (1) Skip section navigation (2)


From: Gena Gurchonok <gena(at)rt(dot)mipt(dot)ru>
To: pgsql-admin(at)postgresql(dot)org
Subject: Deadlocks
Date: 2001-01-18 18:49:26
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin

It seems to me that I discovered strange PSQL behaviour

I have 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.

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.



pgsql-admin by date

Next:From: Bruce MomjianDate: 2001-01-18 18:51:45
Subject: Re: Re[2]: table creation
Previous:From: Gena GurchonokDate: 2001-01-18 18:30:30
Subject: Re[2]: table creation

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group