diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-02-02 21:49:49 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-02-02 21:49:49 +0000 |
commit | 388a42c515e2fc59171f7805c4d023bbaf4d4180 (patch) | |
tree | e0012f2da1595c67caa7932cf4575968b5d1eb65 /src/backend/utils/sort/tuplesort.c | |
parent | 722c886ba124b346224b0ac4e5af47bc5d85a205 (diff) | |
download | postgresql-388a42c515e2fc59171f7805c4d023bbaf4d4180.tar.gz postgresql-388a42c515e2fc59171f7805c4d023bbaf4d4180.zip |
Adjust constant-folding of CASE expressions so that the simple comparison
form of CASE (eg, CASE 0 WHEN 1 THEN ...) can be constant-folded as it
was in 7.4. Also, avoid constant-folding result expressions that are
certainly unreachable --- the former coding was a bit cavalier about this
and could generate unexpected results for all-constant CASE expressions.
Add regression test cases. Per report from Vlad Marchenko.
Diffstat (limited to 'src/backend/utils/sort/tuplesort.c')
0 files changed, 0 insertions, 0 deletions