Re: how can we resolving locking state....

Поиск
Список
Период
Сортировка
От Andreas 'ads' Scherbaum
Тема Re: how can we resolving locking state....
Дата
Msg-id 20100805200346.7d065ae6@platin.wars-nicht.de
обсуждение исходный текст
Ответ на how can we resolving locking state....  (노현석<noh019@naver.com>)
Список pgsql-general
Hi,

On Thu, 05 Aug 2010 17:52:44 +0900 노현석 wrote:

> we test locking PostgreSQL 8.4.4 on x86_64.
>

[...]

> begin;
> delete from citytest;
>  <------- no commit/rollback
>  <------- this will be Blocker
>
> 2> session 2,3,4
> ###########################
> $ psql mydb
> delete from citytest;
>  <--- waiting
>  <--- these are blocked....

[...]

> Could you teach me, Is this expected behavior ?? (disapper blocking
> process not only Blocker process) and
> Could you teach me, how can we eliminate just Blocker session...

Note: the cause for the blocked sessions is in your first session. By
deleting all entries from table "citytest", PG will lock all deleted
entries. Once you try to delete one or all of this rows in another
session, PG waits until the first session is either committed or rolled
back.

This is expected behaviour.


Bye

--
                Andreas 'ads' Scherbaum
Failure is not an option. It comes bundled with your Microsoft product.
 (Ferenc Mantfeld)

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

Предыдущее
От: pgsql-general@news.hub.org
Дата:
Сообщение: pgsql-general@news.hub.org 37% OFF on Pfizer!
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: how can we resolving locking state ....