Re: Outer Join with For Update

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Outer Join with For Update
Дата
Msg-id 18071.1031088679@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Outer Join with For Update  ("alexandre :: aldeia digital" <alepaes@aldeiadigital.com.br>)
Список pgsql-sql
"alexandre :: aldeia digital" <alepaes@aldeiadigital.com.br> writes:
> SELECT A.id, B.desc from A left join B ON B.id=A.id FOR UPDATE OF A,B
> If I have a null rellation in B, the error in postgres is:
> "SELECT FOR UPDATE cannot be applied to the nullable side of an OUTER JOIN"

Yup.

> DB2 simply ignore the FOR UPDATE ...
> I think that is the correct form...

That seems obviously wrong to me.  What good is a FOR UPDATE if it fails
to lock down the rows that created your result?
        regards, tom lane


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Update Help
Следующее
От:
Дата:
Сообщение: Re: tree structures in sql - my point of view (with request