Avoid coercing a whole-row variable that is already coerced.

Robert Haas <rhaas@postgresql.org>

Commit: 1c497fa72df7593d8976653538da3d0ab033207f
Author: Robert Haas <rhaas@postgresql.org>
Date: 2017-10-12T21:10:48Z
Releases: 11.0
Avoid coercing a whole-row variable that is already coerced.

Marginal efficiency and beautification hack.  I'm not sure whether
this case ever arises currently, but the pending patch for update
tuple routing will cause it to arise.

Amit Khandekar

Discussion: http://postgr.es/m/CAJ3gD9cazfppe7-wwUbabPcQ4_0SubkiPFD1+0r5_DkVNWo5yg@mail.gmail.com

Files

PathChange+/−
src/backend/rewrite/rewriteManip.c modified +42 −11

Discussion