aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2016-09-15 12:00:00 -0500
committerPeter Eisentraut <peter_e@gmx.net>2016-12-01 17:38:44 -0500
commite696dccec1c01a92c83eeebedbc8ad948e6b1f61 (patch)
tree2425ad15bdef1cdd523a96c55126993b1d6bda12 /src
parent0aff9293bf79b606ab3c65fdf34e47c8989b7b2d (diff)
downloadpostgresql-e696dccec1c01a92c83eeebedbc8ad948e6b1f61.tar.gz
postgresql-e696dccec1c01a92c83eeebedbc8ad948e6b1f61.zip
Move function_with_argtypes to a better location
It was apparently added for use by GRANT/REVOKE, but move it closer to where other function signature related things are kept. Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Diffstat (limited to 'src')
-rw-r--r--src/backend/parser/gram.y32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y
index d6666839bc2..89a065478f3 100644
--- a/src/backend/parser/gram.y
+++ b/src/backend/parser/gram.y
@@ -6533,22 +6533,6 @@ opt_grant_grant_option:
| /*EMPTY*/ { $$ = FALSE; }
;
-function_with_argtypes_list:
- function_with_argtypes { $$ = list_make1($1); }
- | function_with_argtypes_list ',' function_with_argtypes
- { $$ = lappend($1, $3); }
- ;
-
-function_with_argtypes:
- func_name func_args
- {
- FuncWithArgs *n = makeNode(FuncWithArgs);
- n->funcname = $1;
- n->funcargs = extractArgTypes($2);
- $$ = n;
- }
- ;
-
/*****************************************************************************
*
* GRANT and REVOKE ROLE statements
@@ -6901,6 +6885,22 @@ func_args_list:
| func_args_list ',' func_arg { $$ = lappend($1, $3); }
;
+function_with_argtypes_list:
+ function_with_argtypes { $$ = list_make1($1); }
+ | function_with_argtypes_list ',' function_with_argtypes
+ { $$ = lappend($1, $3); }
+ ;
+
+function_with_argtypes:
+ func_name func_args
+ {
+ FuncWithArgs *n = makeNode(FuncWithArgs);
+ n->funcname = $1;
+ n->funcargs = extractArgTypes($2);
+ $$ = n;
+ }
+ ;
+
/*
* func_args_with_defaults is separate because we only want to accept
* defaults in CREATE FUNCTION, not in ALTER etc.