summaryrefslogtreecommitdiff
path: root/src/include/rewrite/rewriteManip.h
blob: fc8935f1c842d7c51012afe47c62c98d9461ea0a (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
31
32
/*-------------------------------------------------------------------------
 *
 * rewriteManip.h--
 *
 *
 *
 * Copyright (c) 1994, Regents of the University of California
 *
 * $Id: rewriteManip.h,v 1.4 1997/09/08 21:54:09 momjian Exp $
 *
 *-------------------------------------------------------------------------
 */
#ifndef REWRITEMANIP_H
#define REWRITEMANIP_H

/* RewriteManip.c */
void		OffsetVarNodes(Node *node, int offset);
void		ChangeVarNodes(Node *node, int old_varno, int new_varno);
void		AddQual(Query *parsetree, Node *qual);
void		AddNotQual(Query *parsetree, Node *qual);
void		FixResdomTypes(List *user_tlist);
void		FixNew(RewriteInfo *info, Query *parsetree);

void
HandleRIRAttributeRule(Query *parsetree, List *rtable, List *targetlist,
					   int rt_index, int attr_num, int *modified,
					   int *badpostquel);
void
HandleViewRule(Query *parsetree, List *rtable, List *targetlist,
			   int rt_index, int *modified);

#endif							/* REWRITEMANIP_H */