]> 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:20 +0000 (21:28 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 11 Oct 2007 21:28:20 +0000 (21:28 +0000)
commit9bc1ea970d081d6e0c6f9aca3a34d4a0b696f1f3
treeaa5ca8cbd99f86b92668724f4337eed0af98f14a
parent4ef9e9f8776e9e8935464ef4ca011070d93677be
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