Re: bug in explain - core dump

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: bug in explain - core dump
Date: 2010-10-25 18:26:27
Message-ID: 19442.1288031187@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
> DROP TABLE IF EXISTS foo;
> CREATE TABLE foo(a int, b int);
> INSERT INTO foo SELECT (random()*10000)::int, (random()*10)::int from generate_series(1,100000);
> ANALYZE foo;
> CREATE INDEX ON foo(a,b);
> CREATE INDEX ON foo(b,a);

> EXPLAIN SELECT max(a), b
> FROM foo, generate_series(0,30) g(v)
> WHERE a = (SELECT max(a) FROM foo WHERE b = v)
> GROUP BY b;

Fixed, thanks.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Davis 2010-10-25 18:27:29 Re: Range Types, discrete and/or continuous
Previous Message Joshua D. Drake 2010-10-25 18:20:33 Re: Postgres insert performance and storage requirement compared to Oracle