pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joseph Shraibman <jks@selectacast.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: exists
Date: Tue, 21 Aug 2001 20:15:45 -0400
Message-ID: <3B82F9B1.6020401@selectacast.net> (raw)
References: <Pine.BSF.4.21.0108211051570.6482-100000@megazone23.bigpanda.com>
	<3B82A39A.4060307@selectacast.net>
	<10088.998420788@sss.pgh.pa.us>
	<3B82C9B4.4000200@selectacast.net>
	<10701.998427822@sss.pgh.pa.us>
	<3B82D06C.7060006@selectacast.net>
	<13107.998437714@sss.pgh.pa.us>

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@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
> 


-- 
Joseph Shraibman
jks@selectacast.net
Increase signal to noise ratio.  http://www.targabot.com




view thread (13+ messages)

Message-ID: <3B82F9B1.6020401@selectacast.net>
Permalink:  ../3B82F9B1.6020401@selectacast.net/
Also on:    postgresql.org/message-id/3B82F9B1.6020401@selectacast.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jks@selectacast.net, tgl@sss.pgh.pa.us
  Subject: Re: exists
  In-Reply-To: <3B82F9B1.6020401@selectacast.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox