]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Improve implementation of CRE-stack-flattening in map_variable_attnos().
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 13 Oct 2017 17:43:55 +0000 (13:43 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 13 Oct 2017 17:43:55 +0000 (13:43 -0400)
commit73937119bfd07a140da4817f5ca949351942ffdc
treec8ccb2b8ed8b9de26b11fcb4773230dc9d75b92c
parent5229db6c6f92515afcd698cf5d5badc12ffe6bc2
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
src/backend/rewrite/rewriteManip.c