]> granicus.if.org Git - postgresql/blob - src/include/parser/parse_clause.h
pgindent run on all C files. Java run to follow. initdb/regression
[postgresql] / src / include / parser / parse_clause.h
1 /*-------------------------------------------------------------------------
2  *
3  * parse_clause.h
4  *
5  *
6  *
7  * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * $Id: parse_clause.h,v 1.25 2001/10/25 05:50:06 momjian Exp $
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef PARSE_CLAUSE_H
15 #define PARSE_CLAUSE_H
16
17 #include "parser/parse_node.h"
18
19 extern void transformFromClause(ParseState *pstate, List *frmList);
20 extern int setTargetTable(ParseState *pstate, char *relname,
21                            bool inh, bool alsoSource);
22 extern bool interpretInhOption(InhOption inhOpt);
23 extern Node *transformWhereClause(ParseState *pstate, Node *where);
24 extern List *transformGroupClause(ParseState *pstate, List *grouplist,
25                                          List *targetlist);
26 extern List *transformSortClause(ParseState *pstate, List *orderlist,
27                                         List *targetlist);
28 extern List *transformDistinctClause(ParseState *pstate, List *distinctlist,
29                                                 List *targetlist, List **sortClause);
30
31 extern List *addAllTargetsToSortList(List *sortlist, List *targetlist);
32 extern Index assignSortGroupRef(TargetEntry *tle, List *tlist);
33 #endif   /* PARSE_CLAUSE_H */