summaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-07-11 19:12:38 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-07-11 19:12:38 -0400
commitf280eff94974d4f50a927120d45580bb14c27e87 (patch)
tree598e57a6d56b13eccabdbcde7d48a14df08c59db /src/tutorial/funcs.source
parent6fe24405fa2e79d653daaf5c078e2a9d0a4b2c0c (diff)
Fix bug with whole-row references to append subplans.
ExecEvalWholeRowVar incorrectly supposed that it could "bless" the source TupleTableSlot just once per query. But if the input is coming from an Append (or, perhaps, other cases?) more than one slot might be returned over the query run. This led to "record type has not been registered" errors when a composite datum was extracted from a non-blessed slot. This bug has been there a long time; I guess it escaped notice because when dealing with subqueries the planner tends to expand whole-row Vars into RowExprs, which don't have the same problem. It is possible to trigger the problem in all active branches, though, as illustrated by the added regression test.
Diffstat (limited to 'src/tutorial/funcs.source')
0 files changed, 0 insertions, 0 deletions