git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0aff929)
Move function_with_argtypes to a better location
2016年9月15日 17:00:00 +0000 (12:00 -0500)
Thu, 1 Dec 2016 22:38:44 +0000 (17:38 -0500)
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>

diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y
index d6666839bc2b749621a7d610d217a136f7be777a..89a065478f3c2a08ff09047b9063b95f16a1413f 100644 (file)
--- 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.
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /