Re: argument of CASE/WHEN must not return a set

From: Sameer Kumar <sameer(dot)kumar(at)ashnik(dot)com>
To: George Weaver <gweaver(at)shaw(dot)ca>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: argument of CASE/WHEN must not return a set
Date: 2014-01-10 08:42:28
Message-ID: CADp-Sm61+ScXi48PJFtzwBFeuLWg-+nzXu_9OEK95t_WaBj7bw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Jan 10, 2014 at 12:02 AM, George Weaver <gweaver(at)shaw(dot)ca> wrote:

> Thanks David,
>
> I found that if the whole expression is made a sub-select it works:
>

I too eventually got there. :-)

Check the plan for two queries that you have.

Best Regards,
*Sameer Kumar | Database Consultant*

*ASHNIK PTE. LTD. *101 Cecil Street, #11-11 Tong Eng Building, Singapore
069533
M : *+65 8110 0350* T: +65 6438 3504 | www.ashnik.com
www.facebook.com/ashnikbiz | www.twitter.com/ashnikbiz

[image: email patch]

This email may contain confidential, privileged or copyright material and
is solely for the use of the intended recipient(s).

In response to

Browse pgsql-general by date

  From Date Subject
Next Message ygnhzeus 2014-01-10 09:00:29 How to specify/mock the statistic data of tables in PostgreSQL
Previous Message ambilalmca 2014-01-10 06:57:33 Re: How to know server status variable in postgresql?