Move checking an explicit VARIADIC "any" argument into the parser.
Andrew Dunstan <andrew@dunslane.net>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/pg_aggregate.c | modified | +3 −1 |
| src/backend/parser/parse_func.c | modified | +21 −1 |
| src/backend/utils/adt/ruleutils.c | modified | +3 −1 |
| src/backend/utils/adt/varlena.c | modified | +16 −26 |
| src/include/parser/parse_func.h | modified | +2 −2 |
| src/test/regress/expected/text.out | modified | +6 −4 |
| src/test/regress/sql/text.sql | modified | +4 −4 |