1997-11-25 23:07:18 +01:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* parse_target.h
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
1999-07-15 17:21:54 +02:00
|
|
|
* $Id: parse_target.h,v 1.13 1999/07/15 15:21:27 momjian Exp $
|
1997-11-25 23:07:18 +01:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef PARSE_TARGET_H
|
|
|
|
#define PARSE_TARGET_H
|
|
|
|
|
|
|
|
#include <parser/parse_node.h>
|
|
|
|
|
|
|
|
#define EXPR_COLUMN_FIRST 1
|
1998-02-26 05:46:47 +01:00
|
|
|
#define EXPR_RELATION_FIRST 2
|
1997-11-25 23:07:18 +01:00
|
|
|
|
1997-11-26 02:14:33 +01:00
|
|
|
extern List *transformTargetList(ParseState *pstate, List *targetlist);
|
|
|
|
extern List *makeTargetNames(ParseState *pstate, List *cols);
|
1998-09-01 06:40:42 +02:00
|
|
|
extern TargetEntry *MakeTargetEntryIdent(ParseState *pstate,
|
1998-07-08 16:18:45 +02:00
|
|
|
Node *node,
|
|
|
|
char **resname,
|
|
|
|
char *refname,
|
|
|
|
char *colname,
|
1999-05-17 19:03:51 +02:00
|
|
|
bool resjunk);
|
1998-09-01 06:40:42 +02:00
|
|
|
extern Node *CoerceTargetExpr(ParseState *pstate, Node *expr,
|
1998-07-08 16:18:45 +02:00
|
|
|
Oid type_id, Oid attrtype);
|
1998-09-01 06:40:42 +02:00
|
|
|
TargetEntry *MakeTargetEntryExpr(ParseState *pstate,
|
|
|
|
char *colname,
|
|
|
|
Node *expr,
|
|
|
|
List *arrayRef,
|
1999-05-17 19:03:51 +02:00
|
|
|
bool resjunk);
|
1997-11-25 23:07:18 +01:00
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* PARSE_TARGET_H */
|