From: | Sim Zacks <sim(at)compulab(dot)co(dot)il> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: 8.2.4 serious slowdown |
Date: | 2008-01-13 06:09:47 |
Message-ID: | fmca3t$2b18$1@news.hub.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Actually I just checked and the plan is exactly the same for those 2 clauses.
-------- Original Message --------
Subject: Re:8.2.4 serious slowdown
From: Sim Zacks <sim(at)compulab(dot)co(dot)il>
To:
Date: Sunday, January 13, 2008 07:59:22 AM
> How would you rewrite something like:
> WHERE (COALESCE(b.quantity, 0) - COALESCE(b.deliveredsum, 0)) > 0;
> I could write:
> where case when b.quantity is null then 0 else b.quantity end - case
> when b.deliveredsum is null then 0 else b.deliveredsum end > 0
>
> It is butt ugly, but is that the most efficient way to write it in 8.2.4?
>
> Sim
>
From | Date | Subject | |
---|---|---|---|
Next Message | henry | 2008-01-13 06:40:34 | Re: tcp_keepalives_idle ignored |
Previous Message | Sim Zacks | 2008-01-13 05:59:22 | Re: 8.2.4 serious slowdown |
From | Date | Subject | |
---|---|---|---|
Next Message | Warren Turkal | 2008-01-13 08:13:24 | Re: timestamp refactor effort |
Previous Message | Sim Zacks | 2008-01-13 05:59:22 | Re: 8.2.4 serious slowdown |