How to delete all locks? Re: Strange behavior: row won't delete

Поиск
Список
Период
Сортировка
От Phoenix Kiula
Тема How to delete all locks? Re: Strange behavior: row won't delete
Дата
Msg-id e373d31e0903030918p57865a8o6681c9e13bec84b1@mail.gmail.com
обсуждение исходный текст
Список pgsql-general
On Wed, Mar 4, 2009 at 12:55 AM, Phoenix Kiula <phoenix.kiula@gmail.com> wrote:
> I guess my question is, how should I remove all pending locks on a
> table so that I can get on with the rest of the stuff?
>
> I mean, even if I can now find an offending RULE on the table, I
> cannot replace or remove it. '



Any ideas? I think I have identified the offending RULE that was newly
created on the table. It may have missed the WHERE condition.

But even if CREATE OR REPLACE this rule, the command doesn't go
through. So I'm stuck in a vicious loop.

How can I get rid of all open locks? When I go through pg_locks there
are about 1041 of them right now. I am looking for a mechanism of
deleting them all (can I just delete all rows in pg_locks?) instead of
manually going through 1041 on a live database.

Thanks!

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Strange behavior: row won't delete
Следующее
От: Phoenix Kiula
Дата:
Сообщение: Re: Strange behavior: row won't delete