aboutsummaryrefslogtreecommitdiff
path: root/src/include/parser/parse_clause.h
blob: 6b30301ea0b218fd71f69edc9ba56c05dc5d1e3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*-------------------------------------------------------------------------
 *
 * parse_clause.h
 *
 *
 *
 * Copyright (c) 1994, Regents of the University of California
 *
 * $Id: parse_clause.h,v 1.13 1999/08/21 03:49:17 tgl Exp $
 *
 *-------------------------------------------------------------------------
 */
#ifndef PARSE_CLAUSE_H
#define PARSE_CLAUSE_H

#include "parser/parse_node.h"

extern void makeRangeTable(ParseState *pstate, List *frmList, Node **qual);
extern void setTargetTable(ParseState *pstate, char *relname);
extern Node *transformWhereClause(ParseState *pstate, Node *where,
								  Node *using);
extern List *transformGroupClause(ParseState *pstate, List *grouplist,
								  List *targetlist);
extern List *transformSortClause(ParseState *pstate, List *orderlist,
								 List *targetlist, char *uniqueFlag);

extern List *addAllTargetsToSortList(List *sortlist, List *targetlist);
extern Index assignSortGroupRef(TargetEntry *tle, List *tlist);

#endif	 /* PARSE_CLAUSE_H */