]> granicus.if.org Git - postgresql/blob - src/include/parser/parse_clause.h
Major revision of sort-node handling: push knowledge of query
[postgresql] / src / include / parser / parse_clause.h
1 /*-------------------------------------------------------------------------
2  *
3  * parse_clause.h
4  *
5  *
6  *
7  * Copyright (c) 1994, Regents of the University of California
8  *
9  * $Id: parse_clause.h,v 1.13 1999/08/21 03:49:17 tgl Exp $
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef PARSE_CLAUSE_H
14 #define PARSE_CLAUSE_H
15
16 #include "parser/parse_node.h"
17
18 extern void makeRangeTable(ParseState *pstate, List *frmList, Node **qual);
19 extern void setTargetTable(ParseState *pstate, char *relname);
20 extern Node *transformWhereClause(ParseState *pstate, Node *where,
21                                                                   Node *using);
22 extern List *transformGroupClause(ParseState *pstate, List *grouplist,
23                                                                   List *targetlist);
24 extern List *transformSortClause(ParseState *pstate, List *orderlist,
25                                                                  List *targetlist, char *uniqueFlag);
26
27 extern List *addAllTargetsToSortList(List *sortlist, List *targetlist);
28 extern Index assignSortGroupRef(TargetEntry *tle, List *tlist);
29
30 #endif   /* PARSE_CLAUSE_H */