-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AQUMV] Expose the function adjust view query and varno fix.
Add new function aqumv_adjust_simple_query. Make it external for other codes may use the same logic. It has two main functions: Adjust view query, remove 'old' and 'new' rte for refresh, make it to be a valid query tree. Fix varno after that rewrite. Fix varnosyn, keep it with varno as we don't have syntactic one. Authored-by: Zhang Mingli avamingli@gmail.com
- Loading branch information
1 parent
357c6aa
commit b446160
Showing
2 changed files
with
135 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/*------------------------------------------------------------------------- | ||
* | ||
* aqumv.h | ||
* prototypes for optimizer/plan/aqumv.c. | ||
* | ||
* Portions Copyright (c) 2024, HashData Technology Limited. | ||
* | ||
* Author: Zhang Mingli <avamingli@gmail.com> | ||
* | ||
* src/include/optimizer/aqumv.h | ||
* | ||
*------------------------------------------------------------------------- | ||
*/ | ||
#ifndef AQUMV_H | ||
#define AQUMV_H | ||
|
||
#include "nodes/parsenodes.h" | ||
|
||
/* | ||
* Adjust parse tree storaged in view's actions. | ||
* Query should be a simple query, ex: | ||
* select from a single table. | ||
*/ | ||
extern void aqumv_adjust_simple_query(Query *viewQuery); | ||
|
||
#endif /* AQUMV_H */ |