pgsql: Disallow aggregate functions in UPDATE commands (unless within a

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Disallow aggregate functions in UPDATE commands (unless within a
Дата
Msg-id 20060621183011.91B659FB1BC@postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Disallow aggregate functions in UPDATE commands (unless within a sub-SELECT).
This is disallowed by the SQL spec because it doesn't have any very sensible
interpretation.  Historically Postgres has allowed it but behaved strangely.
As of PG 8.1 a server crash is possible if the MIN/MAX index optimization gets
applied; rather than try to "fix" that, it seems best to just enforce the
spec restriction.  Per report from Josh Drake and Alvaro Herrera.

Modified Files:
--------------
    pgsql/src/backend/parser:
        analyze.c (r1.334 -> r1.335)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/analyze.c.diff?r1=1.334&r2=1.335)

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

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Eliminate a gratuitously different wording of the 'cannot use
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Disallow aggregate functions in UPDATE commands (unless within a