Improve implementation of CRE-stack-flattening in map_variable_attnos().
Tom Lane <tgl@sss.pgh.pa.us>
Improve implementation of CRE-stack-flattening in map_variable_attnos(). I (tgl) objected to the obscure implementation introduced in commit 1c497fa72. This one seems a bit less action-at-a-distance-y, at the price of repeating a few lines of code. Improve the comments about what the function is doing, too. Amit Khandekar, whacked around a bit more by me Discussion: https://postgr.es/m/CAJ3gD9egYTyHUH0nTMxm8-1m3RvdqEbaTyGC-CUNtYf7tKNDaQ@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/rewrite/rewriteManip.c | modified | +55 −46 |
Discussion
- Re: pgsql: Avoid coercing a whole-row variable that is already coerced 4 messages · 2017-10-13