Re: LIMIT problem

From: Nilesh Govindarajan <lists(at)itech7(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: LIMIT problem
Date: 2010-04-30 12:57:00
Message-ID: 4BDAD39C.2090207@itech7.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 04/30/2010 06:20 PM, silly sad wrote:
> suppose i request
>
> SELECT foo(t.x) FROM t LIMIT 1;
>
> Whither it DEFINED how many times foo() will be executed?
>
> May anyone rely on it?
> Or we have to avoid this non SQLish trick?
>

It will execute foo only once, and give only one row out of the n rows
it returns. If I'm wrong please correct me.

--
Nilesh Govindarajan
Site & Server Administrator
www.itech7.com
मेरा भारत महान !
मम भारत: महत्तम भवतु !

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Jasen Betts 2010-04-30 23:58:15 Re: LIMIT problem
Previous Message silly sad 2010-04-30 12:50:18 LIMIT problem