Skip site navigation (1) Skip section navigation (2)

Re: Bug #633: CASE statement evaluation does not short-circut

From: Thomas Lockhart <lockhart(at)fourpalms(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: colejatmsu(dot)edu(at)postgresql(dot)org, pgsql-bugs(at)postgresql(dot)org,pgsql-hackers(at)postgresql(dot)org
Subject: Re: Bug #633: CASE statement evaluation does not short-circut
Date: 2002-04-16 02:33:05
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugspgsql-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

In response to

pgsql-hackers by date

Next:From: Tatsuo IshiiDate: 2002-04-16 02:42:47
Subject: Re: regexp character class locale awareness patch
Previous:From: Peter EisentrautDate: 2002-04-16 02:07:11
Subject: Re: multibyte support by default

pgsql-bugs by date

Next:From: Jochem van DietenDate: 2002-04-16 10:19:12
Subject: Re: Alter/update large tables - VERRRY annoying behaviour!
Previous:From: Tatsuo IshiiDate: 2002-04-16 01:08:46
Subject: Re: oh, i don't know did it is a bug or not.

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group