Re: possible bug in 8.4

Поиск
Список
Период
Сортировка
Искать
От
Grzegorz Jaskiewicz
Тема
Re: possible bug in 8.4
Дата
Msg-id
24C7D056-28F5-406A-A58B-DC0F0BF4B538@pointblue.com.pl
Ответ на
Re: possible bug in 8.4 (Kevin Grittner)
Список
Дерево обсуждения
possible bug in 8.4 Grzegorz Jaskiewicz <gj@pointblue.com.pl>
Re: possible bug in 8.4 Gregory Stark <stark@enterprisedb.com>
Re: possible bug in 8.4 Tom Lane <tgl@sss.pgh.pa.us>
Re: possible bug in 8.4 Gregory Stark <stark@enterprisedb.com>
Re: possible bug in 8.4 Tom Lane <tgl@sss.pgh.pa.us>
Re: possible bug in 8.4 Grzegorz Jaskiewicz <gj@pointblue.com.pl>
Re: possible bug in 8.4 Gregory Stark <stark@enterprisedb.com>
Re: possible bug in 8.4 "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: possible bug in 8.4 Grzegorz Jaskiewicz <gj@pointblue.com.pl>
Re: possible bug in 8.4 Tom Lane <tgl@sss.pgh.pa.us>
Re: possible bug in 8.4 Grzegorz Jaskiewicz <gj@pointblue.com.pl>
Re: possible bug in 8.4 Grzegorz Jaskiewicz <gj@pointblue.com.pl>
Re: possible bug in 8.4 Gregory Stark <stark@enterprisedb.com>

true, but as soon as I drop indices on both tables:

root=# explain analyze select a.a from a where a not in (select a from  
b);                                                     QUERY PLAN
-----------------------------------------------------------------------------------------------------------------------
Seq Scan on a  (cost=88677.00..187207.00 rows=3000000 width=4)
(actual time=22803.470..26473.039 rows=600000 loops=1)  Filter: (NOT (hashed subplan))  SubPlan    ->  Seq Scan on b  (cost=0.00..75177.00 rows=5400000 width=4)
(actual time=9.232..15828.904 rows=5400000 loops=1)
Total runtime: 29357.267 ms
(5 rows)

root=# select version();                                               version
--------------------------------------------------------------------------------------------------------
PostgreSQL 8.3.5 on i686-redhat-linux-gnu, compiled by GCC gcc (GCC)
3.4.6 20060404 (Red Hat 3.4.6-10)
(1 row)


I thought planner should be able to choose plan that costs less.


В списке pgsql-hackers по дате отправления
От: Simon Riggs
Дата:
От: Heikki Linnakangas
Дата:
FAQ