mirror of
https://github.com/postgres/postgres.git
synced 2025-10-29 22:49:41 +03:00
Support named and default arguments in CALL
We need to call expand_function_arguments() to expand named and default arguments. In PL/pgSQL, we also need to deal with named and default INOUT arguments when receiving the output values into variables. Author: Pavel Stehule <pavel.stehule@gmail.com>
This commit is contained in:
@@ -14,9 +14,9 @@
|
||||
#ifndef CLAUSES_H
|
||||
#define CLAUSES_H
|
||||
|
||||
#include "access/htup.h"
|
||||
#include "nodes/relation.h"
|
||||
|
||||
|
||||
#define is_opclause(clause) ((clause) != NULL && IsA(clause, OpExpr))
|
||||
#define is_funcclause(clause) ((clause) != NULL && IsA(clause, FuncExpr))
|
||||
|
||||
@@ -85,4 +85,7 @@ extern Node *estimate_expression_value(PlannerInfo *root, Node *node);
|
||||
extern Query *inline_set_returning_function(PlannerInfo *root,
|
||||
RangeTblEntry *rte);
|
||||
|
||||
extern List *expand_function_arguments(List *args, Oid result_type,
|
||||
HeapTuple func_tuple);
|
||||
|
||||
#endif /* CLAUSES_H */
|
||||
|
||||
Reference in New Issue
Block a user