pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <pgsql@j-davis.com>
To: Adrian Demaestri <ademaestri@yahoo.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Seqscan
Date: Mon, 22 Oct 2007 19:45:11 -0700
Message-ID: <1193107511.26301.59.camel@jdavis> (raw)
In-Reply-To: <853733.8751.qm@web50901.mail.re2.yahoo.com>
References: <853733.8751.qm@web50901.mail.re2.yahoo.com>

On Mon, 2007-10-22 at 19:24 -0700, Adrian Demaestri wrote:
> Hi, 
> I think planner should use other plans than seqscan to solve querys
> like select * from hugetable limit 1, especially when the talbe is
> very large. Is it solved in newer versions or is there some open
> issues about it?. 
> thanks
> I'm working with postgres 8.0.1, 

For the query in question, what would be faster than a seqscan? It
doesn't read the whole table, it only reads until it satisfies the limit
clause. 

Regards,
	Jeff Davis




view thread (4+ messages)  latest in thread

Message-ID: <1193107511.26301.59.camel@jdavis>
Permalink:  ../1193107511.26301.59.camel@jdavis/
Also on:    postgresql.org/message-id/1193107511.26301.59.camel@jdavis

 · 

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-performance@postgresql.org
  Cc: pgsql@j-davis.com, ademaestri@yahoo.com
  Subject: Re: Seqscan
  In-Reply-To: <1193107511.26301.59.camel@jdavis>

* 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