Re: Implementation of LIMIT on DELETE and UPDATE statements (rel to 7.2.1)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Implementation of LIMIT on DELETE and UPDATE statements (rel to 7.2.1)
Дата
Msg-id 21423.1032791820@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Implementation of LIMIT on DELETE and UPDATE statements (rel to 7.2.1)  (srb@cuci.nl (Stephen R. van den Berg))
Список pgsql-patches
srb@cuci.nl (Stephen R. van den Berg) writes:
> Anyway, since ctid's solve my problem, I'm not particularly keen on
> getting the LIMIT support on UPDATE/DELETE anymore.
> I still think that the ctid solution is ugly and non-portable.

Well, they're both ugly and nonportable, IMHO.

To me the deciding argument is that the LIMIT approach is also
dangerous, because it encourages people to use incompletely-specified
queries to modify their data.  See other messages in this thread for
examples.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Implementation of LIMIT on DELETE and UPDATE statements
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Implementation of LIMIT on DELETE and UPDATE statements