Re: Help on Procedure running external function

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Help on Procedure running external function
Дата
Msg-id 20050705123948.GB11379@wolff.to
обсуждение исходный текст
Ответ на Re: Help on Procedure running external function  (Zac <zaccheob@inwind.it>)
Ответы Re: Help on Procedure running external function  (Din Adrian <adrian.din@easynet.ro>)
Список pgsql-sql
On Tue, Jul 05, 2005 at 13:47:24 +0200, Zac <zaccheob@inwind.it> wrote:
> I think you should use 'FOR UPDATE' clause in your first "select":
> 
> select into vnrBon maxnrbon+1 from MagMaxNrBon where magazie = 
> dsgroup.magazie_implicita_lansare FOR UPDATE;
> 
> In this way you lock the rows eventually returned and no one can update 
> them (or select them "for update") until your transaction finished.

That doesn't work because you don't lock rows which aren't in the table
yet. You need to use a lock table instead.


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

Предыдущее
От: Din Adrian
Дата:
Сообщение: Re: Help on Procedure running external function
Следующее
От: Din Adrian
Дата:
Сообщение: Re: Help on Procedure running external function