]> git.ipfire.org Git - thirdparty/postgresql.git/commit
simplify_function() mustn't try to evaluate functions that return
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 28 Jan 2004 00:05:25 +0000 (00:05 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 28 Jan 2004 00:05:25 +0000 (00:05 +0000)
commit9f017115f598ad3e900f383dac17ff8463075d1e
tree48ea68d042b80182d14431fbd066700feaf358ff
parent03ef7ebafae4ceeb23e6c3651d07a1c39b8b8648
simplify_function() mustn't try to evaluate functions that return
composite types, because TupleTableSlots aren't Datums and can't be
stored in Const nodes.  We can remove this restriction if we ever
adopt a cleaner runtime representation for whole-tuple results, but
at the moment it's broken.  Per example from Thomas Hallgren.
src/backend/optimizer/util/clauses.c