From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Sergei Shelukhin <realgeek(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: insane index scan times |
Date: | 2007-06-03 23:05:02 |
Message-ID: | 20070603230502.GD3813@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Sergei Shelukhin escribió:
> explain select * from entries inner join stuff on entries.id =
> stuff.id;
>
> -> Seq Scan on stuff (cost=0.00..193344.00 rows=12550400 width=12)
>
>
> set enable_seqscan = off;
>
> explain select * from entries inner join stuff on entries.id =
> stuff.id;
>
> -> Index Scan using blah on stuff (cost=0.00..25406232.30
> rows=12550400 width=12)
>
> Query execution resuls are consistent w/explain. wtf? no I mean,
> WTF?????!!!!!!!!!!!!!!!!!!!
>
> Sorry. But I 'm amazed.
I am not. You are asking it to give you 12 million rows -- so it does.
What's the surprise if it takes long?
Do you really want to have all 12 million rows as a result?
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
From | Date | Subject | |
---|---|---|---|
Next Message | Gabriele Bartolini | 2007-06-03 23:12:53 | Re: New Live CD needed |
Previous Message | Alexander Staubo | 2007-06-03 22:51:11 | Re: multimaster |