rewriteManip.h
上传用户:blenddy
上传日期:2007-01-07
资源大小:6495k
文件大小:1k
- /*-------------------------------------------------------------------------
- *
- * rewriteManip.h
- *
- *
- *
- * Copyright (c) 1994, Regents of the University of California
- *
- * $Id: rewriteManip.h,v 1.16 1999/05/26 12:56:50 momjian Exp $
- *
- *-------------------------------------------------------------------------
- */
- #ifndef REWRITEMANIP_H
- #define REWRITEMANIP_H
- #include "nodes/nodes.h"
- #include "nodes/parsenodes.h"
- #include "rewrite/rewriteHandler.h"
- /* RewriteManip.c */
- void OffsetVarNodes(Node *node, int offset, int sublevels_up);
- void ChangeVarNodes(Node *node, int old_varno, int new_varno,
- int sublevels_up);
- void AddQual(Query *parsetree, Node *qual);
- void AddHavingQual(Query *parsetree, Node *havingQual);
- void AddNotQual(Query *parsetree, Node *qual);
- void AddGroupClause(Query *parsetree, List *group_by, List *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);
- #endif /* REWRITEMANIP_H */