]> 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:05 +0000 (21:28 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 11 Oct 2007 21:28:05 +0000 (21:28 +0000)
commitef3ff3eee48d88ce35b87409c0d96a12f75f044b
tree1c4da6a080cf1a739c4662874b7ee4adf5fa07f2
parenta948f7c62ce478af2de8b39366cc10166486a85d
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