Re: idle in transaction

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: idle in transaction
Дата
Msg-id 5390.1008030631@sss.pgh.pa.us
обсуждение исходный текст
Ответ на idle in transaction  ("Rich Ryan" <rich@usedcars.com>)
Ответы Need to vacuum twice for effectiveness?  (Lincoln Yeoh <lyeoh@pop.jaring.my>)
Список pgsql-general
"Rich Ryan" <rich@usedcars.com> writes:
> If I kill pid 4168, the idle in transaction process, then the vacuum and all
> the other waiting processes will proceed fine.

You've got a client that is sitting with an open transaction block ---
ie, BEGIN, do something, go to sleep without issuing COMMIT/ROLLBACK.

In 7.1 the "do something" could just be a SELECT; that's still
sufficient to block VACUUM.  I think that 7.0 might have been a little
laxer about that, and would not hold a lock for a SELECT-only
transaction.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Using Cursor in PostgreSQL 7.2
Следующее
От: "Paul Laub"
Дата:
Сообщение: Re: referential integrity on existing table