Re: PL/pgSQL 2

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PL/pgSQL 2
Дата
Msg-id 3730.1409667710@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PL/pgSQL 2  (Marko Tiikkaja <marko@joh.to>)
Ответы Re: PL/pgSQL 2  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
Marko Tiikkaja <marko@joh.to> writes:
> For example:

> UPDATE foo WHERE bar = 1;  -- must affect exactly one row
> PERFORM UPDATE foo WHERE bar = 1; -- can affect any number of rows

FWIW, I agree with the position that this would be a completely wrong
thing to do.  UPDATE should work like it does in plain SQL.  If you want
a restriction to "exactly one row", that needs to be a modifier.

I take no position on how the modifier should be spelled, though.
        regards, tom lane



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

Предыдущее
От: Joel Jacobson
Дата:
Сообщение: Re: PL/pgSQL 2
Следующее
От: Vik Fearing
Дата:
Сообщение: Re: ALTER SYSTEM RESET?