pgsql: Move checking an explicit VARIADIC "any" argument into the parse

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема pgsql: Move checking an explicit VARIADIC "any" argument into the parse
Дата
Msg-id E1Uzqd7-0002jg-TK@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Move checking an explicit VARIADIC "any" argument into the parser.

This is more efficient and simpler . It does mean that an untyped NULL
can no longer be used in such cases, which should be mentioned in
Release Notes, but doesn't seem a terrible loss. The workaround is to
cast the NULL to some array type.

Pavel Stehule, reviewed by Jeevan Chalke.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/d26888bc4d1e539a82f21382b0000fe5bbf889d9

Modified Files
--------------
src/backend/catalog/pg_aggregate.c |    4 +++-
src/backend/parser/parse_func.c    |   22 ++++++++++++++++++-
src/backend/utils/adt/ruleutils.c  |    4 +++-
src/backend/utils/adt/varlena.c    |   42 ++++++++++++++----------------------
src/include/parser/parse_func.h    |    4 ++--
src/test/regress/expected/text.out |   10 +++++----
src/test/regress/sql/text.sql      |    8 +++----
7 files changed, 55 insertions(+), 39 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix direct access to Relation->rd_indpred.
Следующее
От: Fujii Masao
Дата:
Сообщение: pgsql: Fix pgstattuple functions to use regclass-type as the argument.