Fix buggy recursion in flatten_rtes_walker().
Tom Lane <tgl@sss.pgh.pa.us>
Fix buggy recursion in flatten_rtes_walker(). Must save-and-restore the context we are modifying. Oversight in commit a61b1f748. Tender Wang Discussion: https://postgr.es/m/CAHewXNnnNySD_YcKNuFpQDV2gxWA7_YLWqHmYVcyoOYxn8kY2A@mail.gmail.com Discussion: https://postgr.es/m/20230212233711.GA1316@telsasoft.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/plan/setrefs.c | modified | +9 −4 |
| src/test/regress/expected/join.out | modified | +12 −0 |
| src/test/regress/sql/join.sql | modified | +6 −0 |
Discussion
- ERROR: permission info at index 1 .... 3 messages · 2023-02-13
- ExecRTCheckPerms() and many prunable partitions 97 messages · 2021-06-30 → 2023-06-30