Re: exists - Mailing list pgsql-sql

From Tom Lane
Subject Re: exists
Date
Msg-id 13107.998437714@sss.pgh.pa.us
Whole thread Raw
In response to Re: exists  (Joseph Shraibman <jks@selectacast.net>)
List pgsql-sql
Joseph Shraibman <jks@selectacast.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


pgsql-sql by date:

Previous
From: Joseph Shraibman
Date:
Subject: Re: exists
Next
From: "macky"
Date:
Subject: Altering pg_conndefaults