OSDN Git Service

Change my-function-name-- to my_function_name, and optimizer renames.
[pg-rex/syncrep.git] / src / include / parser / parse_func.h
1 /*-------------------------------------------------------------------------
2  *
3  * parse_func.h
4  *
5  *
6  *
7  * Copyright (c) 1994, Regents of the University of California
8  *
9  * $Id: parse_func.h,v 1.14 1999/02/13 23:21:57 momjian Exp $
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef PARSER_FUNC_H
14 #define PARSER_FUNC_H
15
16 #include <nodes/nodes.h>
17 #include <nodes/pg_list.h>
18 #include <nodes/parsenodes.h>
19 #include <nodes/primnodes.h>
20 #include <parser/parse_func.h>
21 #include <parser/parse_node.h>
22
23 /*
24  *      This structure is used to explore the inheritance hierarchy above
25  *      nodes in the type tree in order to disambiguate among polymorphic
26  *      functions.
27  */
28 typedef struct _InhPaths
29 {
30         int                     nsupers;                /* number of superclasses */
31         Oid                     self;                   /* this class */
32         Oid                *supervec;           /* vector of superclasses */
33 } InhPaths;
34
35 /*
36  *      This structure holds a list of possible functions or operators that
37  *      agree with the known name and argument types of the function/operator.
38  */
39 typedef struct _CandidateList
40 {
41         Oid                *args;
42         struct _CandidateList *next;
43 }                  *CandidateList;
44
45 extern Node *
46 ParseNestedFuncOrColumn(ParseState *pstate, Attr *attr,
47                                                 int *curr_resno, int precedence);
48 extern Node *
49 ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs,
50                                   int *curr_resno, int precedence);
51
52 extern void
53 func_error(char *caller, char *funcname, int nargs, Oid *argtypes, char *msg);
54
55 #endif   /* PARSE_FUNC_H */