Re: exists

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joseph Shraibman <jks(at)selectacast(dot)net>
Cc: pgsql-sql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: exists
Date: 2001-08-21 23:48:34
Message-ID: 13107.998437714@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

In response to

  • Re: exists at 2001-08-21 21:19:40 from Joseph Shraibman

Responses

  • Re: exists at 2001-08-22 00:15:45 from Joseph Shraibman

Browse pgsql-sql by date

  From Date Subject
Next Message Joseph Shraibman 2001-08-22 00:15:45 Re: exists
Previous Message Joseph Shraibman 2001-08-21 21:19:40 Re: exists