Re: The planner chooses seqscan+sort when there is an index on the sort column

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: The planner chooses seqscan+sort when there is an index on the sort column
Date: 2006-05-03 15:54:33
Message-ID: 20060503155432.GA18128@KanotixBox
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Csaba Nagy <nagy(at)ecircle-ag(dot)com> schrieb:
> select * from table order by col_1;

Without a WHERE you get the whole table.

A Index-Scan is, in this case, expensive.

HTH, Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknow)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Csaba Nagy 2006-05-03 15:57:58 Re: The planner chooses seqscan+sort when there is an
Previous Message John D. Burger 2006-05-03 15:48:54 Re: The planner chooses seqscan+sort when there is an index on the sort column