Re: more select-for-update questions

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: more select-for-update questions
Дата
Msg-id 20070815005157.GW9206@alvh.no-ip.org
обсуждение исходный текст
Ответ на more select-for-update questions  ("Ed L." <pgsql@bluepolka.net>)
Ответы Re: more select-for-update questions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Ed L. wrote:
> I ran a simple select-for-update test on 8.1.2 and was curious as
> to why the semantics are what they are.  Specifically, when you
> have multiple select-for-update-limit queries on the same rows,
> why are rows selected by the blocked query before knowing if
> some of those rows will be removed/eliminated by a preceding
> select-for-update-limit?

This is how it is just because of "historical reasons", i.e. it's a
known misfeature that no one has bothered to fix.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pqlib in c++: PQconnectStart PQconnectPoll
Следующее
От: novnov
Дата:
Сообщение: Re: Trigger not working as expected, first row gets a null value