diff options
| author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2008-08-14 20:31:29 +0000 |
|---|---|---|
| committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2008-08-14 20:31:29 +0000 |
| commit | f24f233f6a9fb3af211c2fc658c5068e63593a8c (patch) | |
| tree | 410b5c1e6ccf7441eef2c3e4f9912f7b1658a36d /src/include | |
| parent | e006a24ad152b3faec748afe8c1ff0829699b2e6 (diff) | |
| download | postgresql-f24f233f6a9fb3af211c2fc658c5068e63593a8c.tar.gz | |
Fix pull_up_simple_union_all to copy all rtable entries from child subquery to
parent, not only those with RangeTblRefs. We need them in ExecCheckRTPerms.
Report by Brendan O'Shea. Back-patch to 8.2, where pull_up_simple_union_all
was introduced.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/rewrite/rewriteManip.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/rewrite/rewriteManip.h b/src/include/rewrite/rewriteManip.h index 05da127ffa..110d8ac0d1 100644 --- a/src/include/rewrite/rewriteManip.h +++ b/src/include/rewrite/rewriteManip.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/rewrite/rewriteManip.h,v 1.44 2008/01/01 19:45:58 momjian Exp $ + * $PostgreSQL: pgsql/src/include/rewrite/rewriteManip.h,v 1.45 2008/08/14 20:31:29 heikki Exp $ * *------------------------------------------------------------------------- */ @@ -22,6 +22,8 @@ extern void ChangeVarNodes(Node *node, int old_varno, int new_varno, int sublevels_up); extern void IncrementVarSublevelsUp(Node *node, int delta_sublevels_up, int min_sublevels_up); +extern void IncrementVarSublevelsUp_rtable(List *rtable, + int delta_sublevels_up, int min_sublevels_up); extern bool rangeTableEntry_used(Node *node, int rt_index, int sublevels_up); |
