Re: bug in explain - core dump - Mailing list pgsql-hackers

From Tom Lane
Subject Re: bug in explain - core dump
Date
Msg-id 19442.1288031187@sss.pgh.pa.us
Whole thread Raw
In response to Re: bug in explain - core dump  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.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


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Range Types, discrete and/or continuous
Next
From: Jeff Davis
Date:
Subject: Re: Range Types, discrete and/or continuous