Re: Problems with genetic optimizer

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Keller <peter(dot)keller(at)bvv(dot)bayern(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Problems with genetic optimizer
Date: 2000-10-25 06:26:28
Message-ID: 27457.972455188@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Peter Keller <peter(dot)keller(at)bvv(dot)bayern(dot)de> writes:
> Ok, I created a table with only one column (box), inserted 120000
> elements, created an index and run a vacuum:

> convert=# explain select * from box_tmp where ebre &&
> box('(470758.555,354028.145),(470758.525,354028.115)'::box);
> NOTICE: QUERY PLAN:
> Seq Scan on box_tmp (cost=0.00..2500.00 rows=2400 width=32)

> convert=# set enable_seqscan = off;
> SET VARIABLE

> convert=# explain select * from box_tmp where ebre &&
> box('(470758.555,354028.145),(470758.525,354028.115)'::box);
> NOTICE: QUERY PLAN:

> Index Scan using idx on box_tmp (cost=0.00..2503.28 rows=2400 width=32)

Oy vey, only three points difference in estimated costs. What is
the actual measured runtime of each approach?

> The result of the query if I set the sequential search on is this:

> convert=# select * from box_tmp where ebre &&
> box('(470758.555,354028.145),(470758.525,354028.115)'::box);
> pqReadData() -- backend closed the channel unexpectedly.

Urk. That's not supposed to happen. There should be a core file
left in your PGDATA/base/dbname/ directory --- can you provide a
backtrace from that file using gdb?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-10-25 06:48:32 Re: newbie debugging pl/pgsql : better way?
Previous Message Peter Keller 2000-10-25 06:04:36 Re: Problems with genetic optimizer