Re: Seqscan

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Adrian Demaestri <ademaestri(at)yahoo(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Seqscan
Date: 2007-10-23 02:45:11
Message-ID: 1193107511.26301.59.camel@jdavis
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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

In response to

  • Seqscan at 2007-10-23 02:24:39 from Adrian Demaestri

Responses

  • Re: Seqscan at 2007-10-23 13:06:39 from Adrian Demaestri

Browse pgsql-performance by date

  From Date Subject
Next Message Pavel Velikhov 2007-10-23 09:54:04 Re: need help with a query
Previous Message Adrian Demaestri 2007-10-23 02:24:39 Seqscan