Re: deadlocks in postgresql 7.2.1 - Mailing list pgsql-bugs

From Tom Lane
Subject Re: deadlocks in postgresql 7.2.1
Date
Msg-id 8875.1059400289@sss.pgh.pa.us
Whole thread Raw
In response to deadlocks in postgresql 7.2.1  (Philipp Reisner <philipp.reisner@linbit.com>)
List pgsql-bugs
Philipp Reisner <philipp.reisner@linbit.com> writes:

>    762 ?        S      0:00 /usr/lib/postgresql/bin/postmaster
>    764 ?        S      0:00 postgres: stats buffer process
>    765 ?        S      0:00 postgres: stats collector process
> 24872 ?        S      0:00 postgres: sd sd 10.2.2.6 idle in transaction
> 24873 ?        R     68:01 postgres: sd sd 10.2.2.6 SELECT
> 24932 ?        S      3:09 postgres: sd sd 10.2.2.6 idle in transaction
> 24943 ?        R      3:02 postgres: sd sd 10.2.2.6 SELECT
> 25004 ?        S      0:01 postgres: sd sd 10.2.1.5 idle in transaction
> 21226 ?        S      0:00 postgres: sd sd 10.2.1.5 idle in transaction
> 21228 ?        S      0:00 postgres: sd sd 10.2.1.5 idle in transaction
> 21229 ?        S      0:00 postgres: sd sd 10.2.1.5 idle in transaction
> 21230 ?        S      0:00 postgres: sd sd 10.2.1.5 idle in transaction
> 21231 ?        S      0:01 postgres: sd sd 10.2.1.5 idle in transaction
> 21232 ?        S      0:00 postgres: sd sd 10.2.1.5 idle in transaction
> 21227 ?        S      0:01 postgres: sd sd 10.2.1.5 INSERT waiting
> 21391 pts/1    S      0:00 grep postg

I see no reason to think this is an undetected deadlock.  The INSERT
is probably waiting for a lock that is held by one of your idle
transactions.  You need to fix your client logic to not hold
transactions open for long periods.

(Now that you've moved up to 7.3, you could look at pg_locks to see just
which idle transaction is blocking the INSERT.)

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Postgresql 7.3.3 crashing on query
Next
From: Dmitry Tkach
Date:
Subject: Re: deadlocks in postgresql 7.2.1