mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
Clean up th ecompile process by centralizing the include files
- code compile tested, but due to a yet unresolved problem with parse.h's creation, compile not completed...
This commit is contained in:
@ -1,21 +0,0 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* locks.h--
|
||||
*
|
||||
*
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: locks.h,v 1.1.1.1 1996/07/09 06:21:51 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef LOCKS_H
|
||||
#define LOCKS_H
|
||||
|
||||
#include "rewrite/prs2lock.h"
|
||||
|
||||
extern List *matchLocks(CmdType event, RuleLock *rulelocks, int varno,
|
||||
Query *parsetree);
|
||||
|
||||
#endif /* LOCKS_H */
|
@ -1,43 +0,0 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* prs2lock.h--
|
||||
* data structures for POSTGRES Rule System II (rewrite rules only)
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: prs2lock.h,v 1.1.1.1 1996/07/09 06:21:51 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef PRS2LOCK_H
|
||||
#define PRS2LOCK_H
|
||||
|
||||
#include "access/attnum.h"
|
||||
#include "nodes/pg_list.h"
|
||||
|
||||
/*
|
||||
* RewriteRule -
|
||||
* holds a info for a rewrite rule
|
||||
*
|
||||
*/
|
||||
typedef struct RewriteRule {
|
||||
Oid ruleId;
|
||||
CmdType event;
|
||||
AttrNumber attrno;
|
||||
Node *qual;
|
||||
List *actions;
|
||||
bool isInstead;
|
||||
} RewriteRule;
|
||||
|
||||
/*
|
||||
* RuleLock -
|
||||
* all rules that apply to a particular relation. Even though we only
|
||||
* have the rewrite rule system left and these are not really "locks",
|
||||
* the name is kept for historical reasons.
|
||||
*/
|
||||
typedef struct RuleLock {
|
||||
int numLocks;
|
||||
RewriteRule **rules;
|
||||
} RuleLock;
|
||||
|
||||
#endif /* REWRITE_H */
|
@ -1,18 +0,0 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* rewriteDefine.h--
|
||||
*
|
||||
*
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: rewriteDefine.h,v 1.1.1.1 1996/07/09 06:21:51 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef REWRITEDEFINE_H
|
||||
#define REWRITEDEFINE_H
|
||||
|
||||
extern void DefineQueryRewrite(RuleStmt *args);
|
||||
|
||||
#endif /* REWRITEDEFINE_H */
|
@ -1,35 +0,0 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* rewriteHandler.h--
|
||||
*
|
||||
*
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: rewriteHandler.h,v 1.1.1.1 1996/07/09 06:21:51 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef REWRITEHANDLER_H
|
||||
#define REWRITEHANDLER_H
|
||||
|
||||
|
||||
struct _rewrite_meta_knowledge {
|
||||
List *rt;
|
||||
int rt_index;
|
||||
bool instead_flag;
|
||||
int event;
|
||||
CmdType action;
|
||||
int current_varno;
|
||||
int new_varno;
|
||||
Query *rule_action;
|
||||
Node *rule_qual;
|
||||
bool nothing;
|
||||
};
|
||||
|
||||
typedef struct _rewrite_meta_knowledge RewriteInfo;
|
||||
|
||||
|
||||
extern List *QueryRewrite(Query *parsetree);
|
||||
|
||||
#endif /*REWRITEHANDLER_H */
|
@ -1,31 +0,0 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* rewriteManip.h--
|
||||
*
|
||||
*
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: rewriteManip.h,v 1.1.1.1 1996/07/09 06:21:52 scrappy 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 */
|
||||
|
@ -1,20 +0,0 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* rewriteRemove.h--
|
||||
*
|
||||
*
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: rewriteRemove.h,v 1.1.1.1 1996/07/09 06:21:52 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef REWRITEREMOVE_H
|
||||
#define REWRITEREMOVE_H
|
||||
|
||||
extern char *RewriteGetRuleEventRel(char *rulename);
|
||||
extern void RemoveRewriteRule(char *ruleName);
|
||||
extern void RelationRemoveRules(Oid relid);
|
||||
|
||||
#endif /* REWRITEREMOVE_H */
|
@ -1,27 +0,0 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* rewriteSupport.h--
|
||||
*
|
||||
*
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: rewriteSupport.h,v 1.1.1.1 1996/07/09 06:21:52 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef REWRITESUPPORT_H
|
||||
#define REWRITESUPPORT_H
|
||||
|
||||
#include "nodes/pg_list.h"
|
||||
|
||||
extern int IsDefinedRewriteRule(char *ruleName);
|
||||
|
||||
extern void prs2_addToRelation(Oid relid, Oid ruleId, CmdType event_type,
|
||||
AttrNumber attno, bool isInstead, Node *qual,
|
||||
List *actions);
|
||||
extern void prs2_deleteFromRelation(Oid relid, Oid ruleId);
|
||||
|
||||
|
||||
#endif /* REWRITESUPPORT_H */
|
||||
|
Reference in New Issue
Block a user