mirror of
https://github.com/postgres/postgres.git
synced 2025-12-02 23:42:46 +03:00
Support "variadic" functions, which can accept a variable number of arguments
so long as all the trailing arguments are of the same (non-array) type. The function receives them as a single array argument (which is why they have to all be the same type). It might be useful to extend this facility to aggregates, but this patch doesn't do that. This patch imposes a noticeable slowdown on function lookup --- a follow-on patch will fix that by adding a redundant column to pg_proc. Pavel Stehule
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/parser/keywords.c,v 1.198 2008/07/03 20:58:46 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/parser/keywords.c,v 1.199 2008/07/16 01:30:22 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -393,6 +393,7 @@ const ScanKeyword ScanKeywords[] = {
|
||||
{"value", VALUE_P, UNRESERVED_KEYWORD},
|
||||
{"values", VALUES, COL_NAME_KEYWORD},
|
||||
{"varchar", VARCHAR, COL_NAME_KEYWORD},
|
||||
{"variadic", VARIADIC, RESERVED_KEYWORD},
|
||||
{"varying", VARYING, UNRESERVED_KEYWORD},
|
||||
{"verbose", VERBOSE, TYPE_FUNC_NAME_KEYWORD},
|
||||
{"version", VERSION_P, UNRESERVED_KEYWORD},
|
||||
|
||||
Reference in New Issue
Block a user