diff options
author | Alexander Korotkov <akorotkov@postgresql.org> | 2024-02-24 00:34:52 +0200 |
---|---|---|
committer | Alexander Korotkov <akorotkov@postgresql.org> | 2024-02-24 00:35:17 +0200 |
commit | 466979ef031afff000f3f92b812b946cf3a416c1 (patch) | |
tree | 9953d5391ffce3e9a32a97c1d5854d2ea15ab2f0 /src/backend/backup/basebackup_incremental.c | |
parent | a6b2a51e16d7ae7b1982c9d8dfa61a637a832209 (diff) | |
download | postgresql-466979ef031afff000f3f92b812b946cf3a416c1.tar.gz postgresql-466979ef031afff000f3f92b812b946cf3a416c1.zip |
Replace lateral references to removed rels in subqueries
This commit introduces a new field 'sublevels_up' in ReplaceVarnoContext,
and enhances replace_varno_walker() to:
1) recurse into subselects with sublevels_up increased, and
2) perform the replacement only when varlevelsup is equal to sublevels_up.
This commit also fixes some outdated comments. And besides adding relevant
test cases, it makes some unification over existing SJE test cases.
Discussion: https://postgr.es/m/CAMbWs4-%3DPO6Mm9gNnySbx0VHyXjgnnYYwbN9dth%3DTLQweZ-M%2Bg%40mail.gmail.com
Author: Richard Guo
Reviewed-by: Andrei Lepikhov, Alexander Korotkov
Diffstat (limited to 'src/backend/backup/basebackup_incremental.c')
0 files changed, 0 insertions, 0 deletions