aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-07-11 19:12:35 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-07-11 19:12:35 -0400
commitd68581483564ec0fbfdc255e493c4f5bd165e55e (patch)
tree9ecf9da266f71de63515e2623f035c76f9bebe18 /contrib/postgres_fdw/postgres_fdw.c
parent80ddd04b4d66ad6564b6d77ffc2bd8fb5e0dcdfa (diff)
downloadpostgresql-d68581483564ec0fbfdc255e493c4f5bd165e55e.tar.gz
postgresql-d68581483564ec0fbfdc255e493c4f5bd165e55e.zip
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 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions