diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-10-11 21:27:49 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-10-11 21:27:49 +0000 |
commit | 2b0c86b66563cf2fd430ba47e6637846e512ee53 (patch) | |
tree | 80c9c923f1836a8415636f3477b130fe152bf5d6 /src/backend/commands/dbcommands.c | |
parent | 05c609b3d45cc173c5d2a247c07e4e03b30fd697 (diff) | |
download | postgresql-2b0c86b66563cf2fd430ba47e6637846e512ee53.tar.gz postgresql-2b0c86b66563cf2fd430ba47e6637846e512ee53.zip |
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.
Diffstat (limited to 'src/backend/commands/dbcommands.c')
0 files changed, 0 insertions, 0 deletions