]> granicus.if.org Git - postgresql/commit
Ensure that the result of evaluating a function during constant-expression
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 11 Oct 2007 21:28:39 +0000 (21:28 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 11 Oct 2007 21:28:39 +0000 (21:28 +0000)
commitb7f1fe6c46c971a89e6a6cfcc629b1ccffeef58f
tree80daad52de479805ed418e86d9be135e230739a3
parent245dd2bca78762b5784fb9ec532c01d6e08334ce
Ensure that the result of evaluating a function during constant-expression
simplification gets detoasted before it is incorporated into a Const node.
Otherwise, if an immutable function were to return a TOAST pointer (an
unlikely case, but it can be made to happen), we would end up with a plan
that depends on the continued existence of the out-of-line toast datum.
src/backend/optimizer/util/clauses.c