1 /*-------------------------------------------------------------------------
7 * Copyright (c) 1994, Regents of the University of California
9 * $Id: parse_target.h,v 1.7 1998/06/05 03:49:19 momjian Exp $
11 *-------------------------------------------------------------------------
13 #ifndef PARSE_TARGET_H
14 #define PARSE_TARGET_H
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>
22 #define EXPR_COLUMN_FIRST 1
23 #define EXPR_RELATION_FIRST 2
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);
32 #endif /* PARSE_TARGET_H */