1996-07-09 08:22:35 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* tlist.h
|
1997-09-07 07:04:48 +02:00
|
|
|
* prototypes for tlist.c.
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*
|
2001-01-24 20:43:33 +01:00
|
|
|
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
2001-10-25 07:50:21 +02:00
|
|
|
* $Id: tlist.h,v 1.29 2001/10/25 05:50:06 momjian Exp $
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef TLIST_H
|
|
|
|
#define TLIST_H
|
|
|
|
|
1997-11-26 02:14:33 +01:00
|
|
|
#include "nodes/relation.h"
|
|
|
|
|
2001-01-09 04:48:51 +01:00
|
|
|
extern TargetEntry *tlistentry_member(Node *node, List *targetlist);
|
1999-08-22 22:15:04 +02:00
|
|
|
extern Resdom *tlist_member(Node *node, List *targetlist);
|
|
|
|
|
1999-05-26 00:43:53 +02:00
|
|
|
extern void add_var_to_tlist(RelOptInfo *rel, Var *var);
|
1997-09-08 23:56:23 +02:00
|
|
|
extern TargetEntry *create_tl_element(Var *var, int resdomno);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
1997-09-08 23:56:23 +02:00
|
|
|
extern List *new_unsorted_tlist(List *targetlist);
|
|
|
|
extern List *flatten_tlist(List *tlist);
|
1999-08-21 05:49:17 +02:00
|
|
|
extern List *add_to_flat_tlist(List *tlist, List *vars);
|
1997-09-07 07:04:48 +02:00
|
|
|
|
1999-08-16 04:17:58 +02:00
|
|
|
extern Var *get_expr(TargetEntry *tle);
|
2000-01-27 19:11:50 +01:00
|
|
|
|
|
|
|
extern TargetEntry *get_sortgroupclause_tle(SortClause *sortClause,
|
2000-04-12 19:17:23 +02:00
|
|
|
List *targetList);
|
1999-08-21 05:49:17 +02:00
|
|
|
extern Node *get_sortgroupclause_expr(SortClause *sortClause,
|
2000-04-12 19:17:23 +02:00
|
|
|
List *targetList);
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* TLIST_H */
|