• Tom Lane's avatar
    Disallow aggregate functions in UPDATE commands (unless within a sub-SELECT). · 1f5ca045
    Tom Lane authored
    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.
    1f5ca045
analyze.c 91 KB