Re: Bug #633: CASE statement evaluation does not short-circut - Mailing list pgsql-hackers

From Thomas Lockhart
Subject Re: Bug #633: CASE statement evaluation does not short-circut
Date
Msg-id 3CBB8D61.7F2498CA@fourpalms.org
Whole thread Raw
In response to Re: [BUGS] Bug #633: CASE statement evaluation does not short-circut  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
...
> I don't really consider this a bug; at least, fixing it would imply not
> const-simplifying the result expressions of CASEs, which is a cure far
> worse than the disease IMHO.  Does anyone think we *should* allow CASE
> to defeat const-simplification?

No. Constant-folding during parsing should *always* be allowed.
                  - Thomas


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: multibyte support by default
Next
From: Manuel Sugawara
Date:
Subject: Re: regexp character class locale awareness patch