]> 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:12 +0000 (21:28 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 11 Oct 2007 21:28:12 +0000 (21:28 +0000)
commitfbe5dc4386d09f3b53989957e681ec99f73e80c0
treef067ff17f26141057de4c9f7b34b5182f07e6ba3
parent9310b2e578f33e63319d0dc0c09b2497f5d20dc8
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