Re: allow LIMIT in UPDATE and DELETE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: allow LIMIT in UPDATE and DELETE
Дата
Msg-id 29038.1148049084@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: allow LIMIT in UPDATE and DELETE  (Csaba Nagy <nagy@ecircle-ag.com>)
Ответы Re: allow LIMIT in UPDATE and DELETE  (Csaba Nagy <nagy@ecircle-ag.com>)
Re: allow LIMIT in UPDATE and DELETE  (Shelby Cain <alyandon@yahoo.com>)
Список pgsql-general
Csaba Nagy <nagy@ecircle-ag.com> writes:
> I DO NOT CARE about which rows are deleted.

You can't possibly think that that holds true in general.

> The fact that it is
> nondeterministic can be very clearly specified in the documentation if
> you think it is such a bad thing, but nondeterministic is perfectly
> fine sometimes. There are lots of nondeterminisms in the data base
> world, starting with the ordering of selects if you don't use order
> by, then why don't we force everybody using order by ? Why don't you
> force to use order by on a select with limit ? Why there it is enough
> to say it in the docs that it WILL BE NON_DETERMINISTIC ?

I can tolerate nondeterminism in SELECT because it doesn't change the
data.  If you get it wrong you can always do it over.  UPDATE/DELETE
need to have higher standards though.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: SQL & Binary Data Questions
Следующее
От: Csaba Nagy
Дата:
Сообщение: Re: allow LIMIT in UPDATE and DELETE