diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2021-06-02 14:38:14 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2021-06-02 14:38:14 -0400 |
commit | 6753a5b7e86cd9bb1eed580b1f9001d5ea1bbdb3 (patch) | |
tree | b32530587ee6b709d7f79c838b3c03400d2d23ff /src/backend/commands/variable.c | |
parent | e5b0fffa17f610f03f03952c8c4a247c39e61292 (diff) |
Fix planner's row-mark code for inheritance from a foreign table.
Commit 428b260f8 broke planning of cases where row marks are needed
(SELECT FOR UPDATE, etc) and one of the query's tables is a foreign
table that has regular table(s) as inheritance children. We got the
reverse case right, but apparently were thinking that foreign tables
couldn't be inheritance parents. Not so; so we need to be able to
add a CTID junk column while adding a new child, not only a wholerow
junk column.
Back-patch to v12 where the faulty code came in.
Amit Langote
Discussion: https://postgr.es/m/CA+HiwqEmo3FV1LAQ4TVyS2h1WM=kMkZUmbNuZSCnfHvMcUcPeA@mail.gmail.com
Diffstat (limited to 'src/backend/commands/variable.c')
0 files changed, 0 insertions, 0 deletions