Re: exists

From: Joseph Shraibman <jks(at)selectacast(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-sql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: exists
Date: 2001-08-22 00:15:45
Message-ID: 3B82F9B1.6020401@selectacast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I'm running 7.1.3. What does 'rows=10000' mean? The number of rows returned or the
number postgres has to look through?

Tom Lane wrote:
> Joseph Shraibman <jks(at)selectacast(dot)net> writes:
>
>>Why does explain show more than one row, even if there is a LIMIT = 1?
>>
>
> What version are you running? I get results like
>
> regression=# explain select * from tenk1 limit 1;
> NOTICE: QUERY PLAN:
>
> Limit (cost=0.00..0.03 rows=1 width=148)
> -> Seq Scan on tenk1 (cost=0.00..333.00 rows=10000 width=148)
>
> EXPLAIN
>
> which seems at least moderately self-explanatory.
>
> regards, tom lane
>

--
Joseph Shraibman
jks(at)selectacast(dot)net
Increase signal to noise ratio. http://www.targabot.com

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jayson Callaway 2001-08-22 04:23:54 changes to table creation syntax in 7.1.2?
Previous Message Tom Lane 2001-08-21 23:48:34 Re: exists