Fix parent of WCO qual.
authorAndres Freund <[email protected]>
Tue, 15 Jan 2019 19:59:32 +0000 (11:59 -0800)
committerAndres Freund <[email protected]>
Tue, 15 Jan 2019 20:04:32 +0000 (12:04 -0800)
commit148e632c05412aa46b450d31cc598a0a33222792
tree8564b3790d771f4ad4b9045cd7e7ca7ad847dd8f
parent1c53c4dec3985512f7f2f53c9d76a5295cd0a2dd
Fix parent of WCO qual.

The parent of some WCO expressions was, apparently by accident, set to
the the source of DML queries, rather than the target table.  This
causes problems for the upcoming pluggable storage work, because the
target and source table might be of different storage types.

It's possible that this is already problematic, but neither
experimenting nor inquiries on -hackers have found them. So don't
back for now.

Author: Andres Freund
Discussion: https://postgr.es/m/20181205225213[email protected]
src/backend/executor/nodeModifyTable.c
src/test/regress/expected/updatable_views.out