mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-07-21 04:19:38 +02:00
35 lines
1.0 KiB
C
35 lines
1.0 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* tlist.h
|
|
* prototypes for tlist.c.
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $PostgreSQL: pgsql/src/include/optimizer/tlist.h,v 1.44 2006/03/05 15:58:57 momjian Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef TLIST_H
|
|
#define TLIST_H
|
|
|
|
#include "nodes/relation.h"
|
|
|
|
|
|
extern TargetEntry *tlist_member(Node *node, List *targetlist);
|
|
|
|
extern List *flatten_tlist(List *tlist);
|
|
extern List *add_to_flat_tlist(List *tlist, List *vars);
|
|
|
|
extern TargetEntry *get_sortgroupclause_tle(SortClause *sortClause,
|
|
List *targetList);
|
|
extern Node *get_sortgroupclause_expr(SortClause *sortClause,
|
|
List *targetList);
|
|
extern List *get_sortgrouplist_exprs(List *sortClauses,
|
|
List *targetList);
|
|
|
|
extern bool tlist_same_datatypes(List *tlist, List *colTypes, bool junkOK);
|
|
|
|
#endif /* TLIST_H */
|