Re: deadlocks in postgresql 7.2.1
От | Tom Lane |
---|---|
Тема | Re: deadlocks in postgresql 7.2.1 |
Дата | |
Msg-id | 8875.1059400289@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | deadlocks in postgresql 7.2.1 (Philipp Reisner <philipp.reisner@linbit.com>) |
Список | 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 по дате отправления: