Обсуждение: pgsql: Switch order of tests to avoid possible Assert failure for

Поиск
Список
Период
Сортировка

pgsql: Switch order of tests to avoid possible Assert failure for

От
tgl@postgresql.org (Tom Lane)
Дата:
Log Message:
-----------
Switch order of tests to avoid possible Assert failure for
"array_agg_finalfn(null)".  We should modify pg_proc entries to prevent this
query from being accepted, but let's just make the function itself secure too.
Per my note of today.

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        array_userfuncs.c (r1.28 -> r1.29)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/array_userfuncs.c?r1=1.28&r2=1.29)