diff options
| author | Noah Misch | 2013-06-26 23:51:56 +0000 |
|---|---|---|
| committer | Noah Misch | 2013-06-27 00:33:25 +0000 |
| commit | 40265e3446b0c037510bb05dfe80e4131e77b754 (patch) | |
| tree | a3bd2e466680a2b6561794273d3817a4296a6956 /doc/src | |
| parent | dc22b34f86a29d393c6407861a6865e88736c22c (diff) | |
Document effect of constant folding on CASE.
Back-patch to all supported versions.
Laurenz Albe
Diffstat (limited to 'doc/src')
| -rw-r--r-- | doc/src/sgml/func.sgml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 4c5af4b83c8..8cf53855616 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -10563,6 +10563,16 @@ SELECT a, SELECT ... WHERE CASE WHEN x <> 0 THEN y/x > 1.5 ELSE false END; </programlisting> </para> + + <note> + <para> + As described in <xref linkend="xfunc-volatility">, functions and + operators marked <literal>IMMUTABLE</literal> can be evaluated when + the query is planned rather than when it is executed. This means + that constant parts of a subexpression that is not evaluated during + query execution might still be evaluated during query planning. + </para> + </note> </sect2> <sect2 id="functions-coalesce-nvl-ifnull"> |
