Re: Is this a commit problem?

Поиск
Список
Период
Сортировка
От Gaetano Mendola
Тема Re: Is this a commit problem?
Дата
Msg-id 3F721EE0.5050306@bigfoot.com
обсуждение исходный текст
Ответ на Is this a commit problem?  (markw@osdl.org)
Ответы Re: Is this a commit problem?  (markw@osdl.org)
Список pgsql-hackers
markw@osdl.org wrote:

> 2. SELECT d_next_o_id
>    INTO current_o_id
>    FROM district
>    WHERE d_w_id = 1
>    AND d_id = 8
> 
> 3. UPDATE district
>    SET d_next_o_id = d_next_o_id + 1
>    WHERE d_w_id = 1
>    AND d_id = 8

I don't  know exactly what you are trying to do
but usualy in cases like this, in order to avoid
further problem in the commit phase you ought to
do a SELECT .... FOR UPDATE  instead.


Regards
Gaeatano Mendola



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: invalid tid errors in latest 7.3.4 stable.
Следующее
От: Greg Stark
Дата:
Сообщение: Re: More Prelimiary DBT-2 Test Results with PostgreSQL 7.3.4