1 /*-------------------------------------------------------------------------
7 * Copyright (c) 1994, Regents of the University of California
9 * $Id: parse_func.h,v 1.14 1999/02/13 23:21:57 momjian Exp $
11 *-------------------------------------------------------------------------
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>
24 * This structure is used to explore the inheritance hierarchy above
25 * nodes in the type tree in order to disambiguate among polymorphic
28 typedef struct _InhPaths
30 int nsupers; /* number of superclasses */
31 Oid self; /* this class */
32 Oid *supervec; /* vector of superclasses */
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.
39 typedef struct _CandidateList
42 struct _CandidateList *next;
46 ParseNestedFuncOrColumn(ParseState *pstate, Attr *attr,
47 int *curr_resno, int precedence);
49 ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs,
50 int *curr_resno, int precedence);
53 func_error(char *caller, char *funcname, int nargs, Oid *argtypes, char *msg);
55 #endif /* PARSE_FUNC_H */