]> granicus.if.org Git - postgresql/blob - src/include/parser/parse_target.h
I made several adjustments to my earlier patch to handle the
[postgresql] / src / include / parser / parse_target.h
1 /*-------------------------------------------------------------------------
2  *
3  * parse_target.h
4  *
5  *
6  *
7  * Copyright (c) 1994, Regents of the University of California
8  *
9  * $Id: parse_target.h,v 1.7 1998/06/05 03:49:19 momjian Exp $
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef PARSE_TARGET_H
14 #define PARSE_TARGET_H
15
16 #include <nodes/pg_list.h>
17 #include <nodes/nodes.h>
18 #include <nodes/parsenodes.h>
19 #include <nodes/primnodes.h>
20 #include <parser/parse_node.h>
21
22 #define EXPR_COLUMN_FIRST       1
23 #define EXPR_RELATION_FIRST 2
24
25 extern List *transformTargetList(ParseState *pstate, List *targetlist);
26 extern List *makeTargetNames(ParseState *pstate, List *cols);
27 extern void transformTargetId(ParseState *pstate, Node *node,
28         TargetEntry *tent, char *resname, int16 resjunk);
29 extern Node *coerce_target_expr(ParseState *pstate, Node *expr,
30                                                                 Oid type_id, Oid attrtype);
31
32 #endif                                                  /* PARSE_TARGET_H */