pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joseph Shraibman <jks@selectacast.net>
Cc: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: exists
Date: Tue, 21 Aug 2001 19:48:34 -0400
Message-ID: <13107.998437714@sss.pgh.pa.us> (raw)
In-Reply-To: <3B82D06C.7060006@selectacast.net>
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>

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



view thread (13+ messages)  latest in thread

Message-ID: <13107.998437714@sss.pgh.pa.us>
Permalink:  ../13107.998437714@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13107.998437714@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, jks@selectacast.net
  Subject: Re: exists
  In-Reply-To: <13107.998437714@sss.pgh.pa.us>

* 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